summary refs log tree commit diff
path: root/pkgs/development/libraries/mesa
diff options
context:
space:
mode:
authorGabriel Ebner <gebner@gebner.org>2021-04-04 16:50:17 +0200
committerGabriel Ebner <gebner@gebner.org>2021-04-09 09:24:24 +0200
commit4bff6d04e44c0bf19c7a0975f882883ba2212a6a (patch)
treebd61809869ad0e62a6ef9edb35e9f01cefb346b2 /pkgs/development/libraries/mesa
parent824aac34283bf95f2cd12ff1b0ffdb2b042c16e0 (diff)
downloadnixpkgs-4bff6d04e44c0bf19c7a0975f882883ba2212a6a.tar
nixpkgs-4bff6d04e44c0bf19c7a0975f882883ba2212a6a.tar.gz
nixpkgs-4bff6d04e44c0bf19c7a0975f882883ba2212a6a.tar.bz2
nixpkgs-4bff6d04e44c0bf19c7a0975f882883ba2212a6a.tar.lz
nixpkgs-4bff6d04e44c0bf19c7a0975f882883ba2212a6a.tar.xz
nixpkgs-4bff6d04e44c0bf19c7a0975f882883ba2212a6a.tar.zst
nixpkgs-4bff6d04e44c0bf19c7a0975f882883ba2212a6a.zip
libGL: use headers from glvnd
The glvnd library contains a copy of the OpenGL headers.  By compiling
against the glvnd headers we completely avoid a dependency on Mesa (and
LLVM).  This reduces rebuild time.  It also prevents accidents, such as
where some packages kept a reference to the mesa.drivers output and thus
had all Mesa drivers in their runtime closure.
Diffstat (limited to 'pkgs/development/libraries/mesa')
-rw-r--r--pkgs/development/libraries/mesa/stubs.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/libraries/mesa/stubs.nix b/pkgs/development/libraries/mesa/stubs.nix
index a53f2dc28e7..753ad1b9196 100644
--- a/pkgs/development/libraries/mesa/stubs.nix
+++ b/pkgs/development/libraries/mesa/stubs.nix
@@ -52,7 +52,7 @@ stdenv.mkDerivation {
 
     mkdir -p $dev/{,lib/pkgconfig,nix-support}
     echo "$out ${libglvnd} ${libglvnd.dev}" > $dev/nix-support/propagated-build-inputs
-    ln -s ${mesa.dev}/include $dev/include
+    ln -s ${libglvnd.dev}/include $dev/include
 
     genPkgConfig() {
       local name="$1"
@@ -61,9 +61,9 @@ stdenv.mkDerivation {
       cat <<EOF >$dev/lib/pkgconfig/$name.pc
     Name: $name
     Description: $lib library
-    Version: ${mesa.version}
+    Version: ${libglvnd.version}
     Libs: -L${libglvnd.out}/lib -l$lib
-    Cflags: -I${mesa.dev}/include -I${libglvnd.dev}/include
+    Cflags: -I${libglvnd.dev}/include
     EOF
     }