ghidra: add doc output to withExtensions

This commit is contained in:
xenia 2024-10-22 03:01:25 -04:00
parent ca16a8a13b
commit 96a730000c
1 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,7 @@ let
f:
(symlinkJoin {
name = "${ghidra.pname}-with-extensions-${lib.getVersion ghidra}";
outputs = [ "out" "doc" ];
paths = (f allExtensions);
nativeBuildInputs = [
makeBinaryWrapper
@ -35,6 +36,9 @@ let
makeWrapper '${ghidra}/bin/ghidra-analyzeHeadless' "$out/bin/ghidra-analyzeHeadless" \
--set NIX_GHIDRAHOME "$out/lib/ghidra/Ghidra"
ln -s ${ghidra}/share $out/share
mkdir -p "$doc/share/doc"
ln -s "${ghidra.doc}/share/doc/ghidra" "$doc/share/doc"
''
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
convertDesktopFiles $prefix