about summary refs log tree commit diff
path: root/pkgs/tools/security/ronin/default.nix
blob: bdde1df36996df661e35388f3970a4d4db1c9801 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ 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',"
      '';
    };
  };

  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 ];
  };
}