mesa: Fix cross-compilation

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg 2022-03-30 15:32:40 -07:00
parent f5f9b6af9d
commit 3ddd9479c9

View File

@ -159,6 +159,7 @@ self = stdenv.mkDerivation {
meson pkg-config ninja
intltool bison flex file
python3Packages.python python3Packages.Mako
jdupes
] ++ lib.optionals (elem "wayland" eglPlatforms) [
wayland-scanner
];
@ -235,7 +236,7 @@ self = stdenv.mkDerivation {
done
# NAR doesn't support hard links, so convert them to symlinks to save space.
${jdupes}/bin/jdupes --hard-links --link-soft --recurse "$drivers"
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