lol

ghidra: Prevent lock file creation in with-extensions directory (#415412)

authored by

Peder Bergebakken Sundt and committed by
GitHub
839a0981 ffd3eb60

+8
+5
pkgs/tools/security/ghidra/build-extension.nix
··· 58 58 mkdir -p $out/lib/ghidra/Ghidra/Extensions 59 59 unzip -d $out/lib/ghidra/Ghidra/Extensions dist/*.zip 60 60 61 + # Prevent attempted creation of plugin lock files in the Nix store. 62 + for i in $out/lib/ghidra/Ghidra/Extensions/*; do 63 + touch "$i/.dbDirLock" 64 + done 65 + 61 66 runHook postInstall 62 67 ''; 63 68
+3
pkgs/tools/security/ghidra/with-extensions.nix
··· 30 30 ] ++ lib.optional stdenv.hostPlatform.isDarwin desktopToDarwinBundle; 31 31 postBuild = 32 32 '' 33 + # Prevent attempted creation of plugin lock files in the Nix store. 34 + touch $out/lib/ghidra/Ghidra/.dbDirLock 35 + 33 36 makeWrapper '${ghidra}/bin/ghidra' "$out/bin/ghidra" \ 34 37 --set NIX_GHIDRAHOME "$out/lib/ghidra/Ghidra" 35 38 makeWrapper '${ghidra}/bin/ghidra-analyzeHeadless' "$out/bin/ghidra-analyzeHeadless" \