depot/third_party/nixpkgs/pkgs/tools/security/ronin/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

31 lines
792 B
Nix

{ lib, bundlerEnv, bundlerUpdateScript, defaultGemConfig, yasm }:
bundlerEnv {
name = "ronin";
gemdir = ./.;
gemConfig = defaultGemConfig // {
ronin-code-asm = attrs: {
dontBuild = false;
postPatch = ''
substituteInPlace lib/ronin/code/asm/program.rb \
--replace "YASM::Command.run(" "YASM::Command.run(
command_path: '${yasm}/bin/yasm',"
'';
};
};
postBuild = ''
shopt -s extglob
rm $out/bin/!(ronin*)
'';
passthru.updateScript = bundlerUpdateScript "ronin";
meta = with lib; {
description = "A free and Open Source Ruby toolkit for security research and development";
homepage = "https://ronin-rb.dev";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ Ch1keen ];
};
}