dragnpkgs/pkgs/ghidra-xenia-v2/extensions/machinelearning/default.nix

35 lines
797 B
Nix
Raw Normal View History

2024-10-21 20:30:26 +00:00
{ lib
, buildGhidraExtension
, ghidra
2024-10-11 02:44:57 +00:00
}:
buildGhidraExtension {
pname = "machinelearning";
version = lib.getVersion ghidra;
src = "${ghidra}/lib/ghidra/Extensions/Ghidra/${ghidra.distroPrefix}_MachineLearning.zip";
dontUnpack = true;
# Built as part ghidra
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/lib/ghidra/Ghidra/Extensions
unzip -d $out/lib/ghidra/Ghidra/Extensions $src
runHook postInstall
'';
meta = with lib; {
inherit (ghidra.meta) homepage license;
description = "Finds functions using ML";
downloadPage = "https://github.com/NationalSecurityAgency/ghidra/tree/master/Ghidra/Extensions/MachineLearning";
sourceProvenance = with sourceTypes; [
fromSource
2024-10-21 20:30:26 +00:00
binaryBytecode # deps
2024-10-11 02:44:57 +00:00
];
};
}