From 77b601780bab1675289f9c40981c431f2c27d8cf Mon Sep 17 00:00:00 2001 From: xenia Date: Thu, 21 Nov 2024 13:04:53 -0500 Subject: [PATCH] pkgs: update ghidra extensions --- pkgs/ghidra-xenia-v2/extensions.nix | 6 +++-- .../default.nix | 24 +++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 pkgs/ghidra-xenia-v2/extensions/ghidra-golanganalyzerextension/default.nix diff --git a/pkgs/ghidra-xenia-v2/extensions.nix b/pkgs/ghidra-xenia-v2/extensions.nix index 60070a3..a94d6d2 100644 --- a/pkgs/ghidra-xenia-v2/extensions.nix +++ b/pkgs/ghidra-xenia-v2/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/ghidra-xenia-v2/extensions/ghidra-golanganalyzerextension/default.nix b/pkgs/ghidra-xenia-v2/extensions/ghidra-golanganalyzerextension/default.nix new file mode 100644 index 0000000..34baf6c --- /dev/null +++ b/pkgs/ghidra-xenia-v2/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 ]; + }; +}