47 lines
664 B
Nix
47 lines
664 B
Nix
{
|
|
lib,
|
|
python,
|
|
buildPythonPackage,
|
|
pythonRelaxDepsHook,
|
|
|
|
ghidra,
|
|
|
|
setuptools,
|
|
|
|
protobuf,
|
|
}: buildPythonPackage {
|
|
pname = "ghidratrace";
|
|
version = "11.3";
|
|
pyproject = true;
|
|
|
|
src = "${ghidra.lib}/lib/ghidra/Ghidra/Debug/Debugger-rmi-trace/pypkg";
|
|
|
|
postPatch = ''
|
|
rm -rf dist
|
|
'';
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
protobuf
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"protobuf"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"ghidratrace"
|
|
];
|
|
|
|
meta = (lib.removeAttrs ghidra.meta ["description" "mainProgram"]) // {
|
|
description = "Ghidra's TraceRmi for Python3";
|
|
};
|
|
}
|