Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
982 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
bundlerEnv,
bundlerUpdateScript,
defaultGemConfig,
ronin,
testers,
yasm,
}:
bundlerEnv rec {
name = "ronin";
version = "2.1.1";
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";
passthru.tests.version = testers.testVersion {
package = ronin;
command = "ronin --version";
version = "ronin ${version}";
};
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 ];
};
}