2023-06-27 14:42:59 +00:00
|
|
|
{ lib, bundlerEnv, bundlerUpdateScript, defaultGemConfig, yasm }:
|
2023-05-22 07:38:40 +00:00
|
|
|
|
2023-06-27 14:42:59 +00:00
|
|
|
bundlerEnv {
|
|
|
|
name = "ronin";
|
2023-05-22 07:38:40 +00:00
|
|
|
gemdir = ./.;
|
2023-06-27 14:42:59 +00:00
|
|
|
|
|
|
|
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',"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
2023-05-22 07:38:40 +00:00
|
|
|
|
2023-07-25 12:42:09 +00:00
|
|
|
postBuild = ''
|
|
|
|
shopt -s extglob
|
|
|
|
rm $out/bin/!(ronin*)
|
|
|
|
'';
|
|
|
|
|
2023-05-22 07:38:40 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|