mesa.drivers: Convert hard links to symlinks

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
main
Anders Kaseorg 2 years ago
parent 23d785aa6f
commit 4e199a91dc
  1. 4
      pkgs/development/libraries/mesa/default.nix

@ -15,6 +15,7 @@
, enableOSMesa ? stdenv.isLinux
, enableOpenCL ? stdenv.isLinux && stdenv.isx86_64
, libclc
, jdupes
}:
/** Packaging design:
@ -233,6 +234,9 @@ self = stdenv.mkDerivation {
fi
done
# NAR doesn't support hard links, so convert them to symlinks.
${jdupes}/bin/jdupes -Hlr "$drivers"
# add RPATH so the drivers can find the moved libgallium and libdricore9
# moved here to avoid problems with stripping patchelfed files
for lib in $drivers/lib/*.so* $drivers/lib/*/*.so*; do

Loading…
Cancel
Save