Merge #160267: mesa.drivers: Convert hard links to symlinks

This commit is contained in:
Vladimír Čunát
2022-02-28 21:26:45 +01:00
@@ -15,6 +15,7 @@
, enableOSMesa ? stdenv.isLinux
, enableOpenCL ? stdenv.isLinux && stdenv.isx86_64
, libclc
, jdupes
}:
/** Packaging design:
@@ -228,6 +229,9 @@ self = stdenv.mkDerivation {
fi
done
# NAR doesn't support hard links, so convert them to symlinks to save space.
${jdupes}/bin/jdupes --hard-links --link-soft --recurse "$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