diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/security/ronin/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/security/ronin/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/security/ronin/default.nix b/nixpkgs/pkgs/tools/security/ronin/default.nix new file mode 100644 index 000000000000..1bf98ae9eafc --- /dev/null +++ b/nixpkgs/pkgs/tools/security/ronin/default.nix @@ -0,0 +1,31 @@ +{ 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 ]; + }; +} |