2023-07-15 17:15:38 +00:00
|
|
|
{ lib, bundlerEnv, bundlerUpdateScript, defaultGemConfig, yasm }:
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
bundlerEnv {
|
|
|
|
name = "ronin";
|
2023-05-24 13:37:59 +00:00
|
|
|
gemdir = ./.;
|
2023-07-15 17:15:38 +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-24 13:37:59 +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 ];
|
|
|
|
};
|
|
|
|
}
|