ghidra-bin: wrap launcher instead of the binary

This commit is contained in:
ilkecan 2021-10-01 22:49:49 +03:00
parent a0d0c597ad
commit 3e85813580

View File

@ -62,7 +62,9 @@ in stdenv.mkDerivation rec {
postFixup = ''
mkdir -p "$out/bin"
makeWrapper "${pkg_path}/ghidraRun" "$out/bin/ghidra" \
ln -s "${pkg_path}/ghidraRun" "$out/bin/ghidra"
wrapProgram "${pkg_path}/support/launch.sh" \
--prefix PATH : ${lib.makeBinPath [ openjdk11 ]}
'';