bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
31 lines
790 B
Nix
31 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 ];
|
|
};
|
|
}
|