diff --git a/pkgs/tools/security/ghidra/extensions.nix b/pkgs/tools/security/ghidra/extensions.nix index 60070a316a0f..a94d6d290e50 100644 --- a/pkgs/tools/security/ghidra/extensions.nix +++ b/pkgs/tools/security/ghidra/extensions.nix @@ -13,12 +13,14 @@ lib.makeScope newScope (self: { findcrypt = self.callPackage ./extensions/findcrypt { }; - ghidraninja-ghidra-scripts = self.callPackage ./extensions/ghidraninja-ghidra-scripts { }; - ghidra-delinker-extension = self.callPackage ./extensions/ghidra-delinker-extension { inherit ghidra; }; + ghidra-golanganalyzerextension = self.callPackage ./extensions/ghidra-golanganalyzerextension { }; + + ghidraninja-ghidra-scripts = self.callPackage ./extensions/ghidraninja-ghidra-scripts { }; + gnudisassembler = self.callPackage ./extensions/gnudisassembler { inherit ghidra; }; lightkeeper = self.callPackage ./extensions/lightkeeper { }; diff --git a/pkgs/tools/security/ghidra/extensions/ghidra-golanganalyzerextension/default.nix b/pkgs/tools/security/ghidra/extensions/ghidra-golanganalyzerextension/default.nix new file mode 100644 index 000000000000..34baf6c971f5 --- /dev/null +++ b/pkgs/tools/security/ghidra/extensions/ghidra-golanganalyzerextension/default.nix @@ -0,0 +1,24 @@ +{ + lib, + fetchFromGitHub, + buildGhidraExtension, +}: +buildGhidraExtension rec { + pname = "Ghidra-GolangAnalyzerExtension"; + version = "1.2.4"; + + src = fetchFromGitHub { + owner = "mooncat-greenpy"; + repo = "Ghidra_GolangAnalyzerExtension"; + rev = version; + hash = "sha256-uxozIJ+BLcP1vBnLOCZD9ueY10hd37fON/Miii3zabo="; + }; + + meta = { + description = "Facilitates the analysis of Golang binaries using Ghidra"; + homepage = "https://github.com/mooncat-greenpy/Ghidra_GolangAnalyzerExtension"; + downloadPage = "https://github.com/mooncat-greenpy/Ghidra_GolangAnalyzerExtension/releases/tag/${version}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.ivyfanchiang ]; + }; +}