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