diff options
Diffstat (limited to 'modules/ghidra.nix')
| -rw-r--r-- | modules/ghidra.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/modules/ghidra.nix b/modules/ghidra.nix new file mode 100644 index 0000000..7c0f643 --- /dev/null +++ b/modules/ghidra.nix @@ -0,0 +1,33 @@ +{ + config, + lib, + pkgs, + ... +}: +let + cfg = config.modules.ghidra; + scheme = config.modules.scheme; + fmt = col: lib.strings.removePrefix "#" col; +in +{ + options.modules.ghidra = { + enable = lib.mkEnableOption "ghidra"; + }; + + config = lib.mkIf cfg.enable { + home.packages = [ + pkgs.z3 + pkgs.python312Packages.z3-solver + (pkgs.ghidra.withExtensions (p: with p; [ + ret-sync + ghidra-firmware-utils + ghidra-golanganalyzerextension + kaiju + sleighdevtools + wasm + ghidra-golanganalyzerextension + ghidra-delinker-extension + ])) + ]; + }; +} |