Skip to content

Commit

Permalink
libnvidia-container: fix dangling symlinks (#375291)
Browse files Browse the repository at this point in the history
  • Loading branch information
msanft authored Jan 30, 2025
2 parents daa72ff + 835109e commit 3f5b822
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/by-name/li/libnvidia-container/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ stdenv.mkDerivation rec {
--replace-fail ldconfig true
'';

# Recreate library symlinks which ldconfig would have created
postFixup = ''
for lib in libnvidia-container libnvidia-container-go; do
rm -f "$out/lib/$lib.so"
ln -s "$out/lib/$lib.so.${version}" "$out/lib/$lib.so.1"
ln -s "$out/lib/$lib.so.1" "$out/lib/$lib.so"
done
'';

enableParallelBuilding = true;

preBuild = ''
Expand Down

0 comments on commit 3f5b822

Please sign in to comment.