depot/pkgs/tools/security/ronin/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

31 lines
790 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 = "Free and Open Source Ruby toolkit for security research and development";
homepage = "https://ronin-rb.dev";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ Ch1keen ];
};
}