summary refs log tree commit diff
path: root/pkgs/development/libraries/mesa
diff options
context:
space:
mode:
authorArtturi <Artturin@artturin.com>2023-10-06 06:41:13 +0300
committerGitHub <noreply@github.com>2023-10-06 06:41:13 +0300
commit330868a0a8cca80fa7793ec948b1fdbc4b6618d2 (patch)
treea940329dbe0f4f45604f8a4863d678811f29be5e /pkgs/development/libraries/mesa
parentc2b2bb3e28297791dd283e4eee610b70699b66fd (diff)
parent912c60564334a81af7cfd4a38f9eed44d7770fa9 (diff)
downloadnixpkgs-330868a0a8cca80fa7793ec948b1fdbc4b6618d2.tar
nixpkgs-330868a0a8cca80fa7793ec948b1fdbc4b6618d2.tar.gz
nixpkgs-330868a0a8cca80fa7793ec948b1fdbc4b6618d2.tar.bz2
nixpkgs-330868a0a8cca80fa7793ec948b1fdbc4b6618d2.tar.lz
nixpkgs-330868a0a8cca80fa7793ec948b1fdbc4b6618d2.tar.xz
nixpkgs-330868a0a8cca80fa7793ec948b1fdbc4b6618d2.tar.zst
nixpkgs-330868a0a8cca80fa7793ec948b1fdbc4b6618d2.zip
Merge pull request #259109 from Artturin/mesabuildpython
mesa: don't depend on build python
Diffstat (limited to 'pkgs/development/libraries/mesa')
-rw-r--r--pkgs/development/libraries/mesa/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix
index 239be08b4ed..ccf785082c3 100644
--- a/pkgs/development/libraries/mesa/default.nix
+++ b/pkgs/development/libraries/mesa/default.nix
@@ -223,6 +223,7 @@ self = stdenv.mkDerivation {
     libffi libvdpau libelf libXvMC
     libpthreadstubs openssl /*or another sha1 provider*/
     zstd libunwind
+    python3Packages.python # for shebang
   ] ++ lib.optionals haveWayland [ wayland wayland-protocols ]
     ++ lib.optionals stdenv.isLinux [ libomxil-bellagio libva-minimal udev lm_sensors ]
     ++ lib.optionals enableOpenCL [ libclc llvmPackages.clang llvmPackages.clang-unwrapped rustc rust-bindgen' spirv-llvm-translator' ]
@@ -320,6 +321,9 @@ self = stdenv.mkDerivation {
       fi
     done
 
+    # Don't depend on build python
+    patchShebangs --host --update $out/bin/*
+
     # NAR doesn't support hard links, so convert them to symlinks to save space.
     jdupes --hard-links --link-soft --recurse "$drivers"