julia-bin: autoPatchelf manually to avoid mangling cache (#362412)

This commit is contained in:
Nick Cao
2024-12-08 09:45:53 -05:00
committed by GitHub
@@ -85,11 +85,17 @@ stdenv.mkDerivation {
installPhase = ''
runHook preInstall
cp -r . $out
'' + lib.optionalString stdenv.hostPlatform.isLinux ''
# "$out/share" is intentionally omitted since it contains
# julia package images and patchelf would break them
autoPatchelf "$out/bin" "$out/lib" "$out/libexec"
'' + ''
runHook postInstall
'';
# Breaks backtraces, etc.
dontStrip = true;
dontAutoPatchelf = true;
doInstallCheck = true;