nixpkgs/pkgs/tools/security/ronin/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

32 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 ];
};
}