about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2013-01-28 19:32:29 +0100
committerPeter Simons <simons@cryp.to>2013-01-28 19:32:29 +0100
commit07cdc02266e3854d914c966d0746fb29dcae8ba7 (patch)
treeaed5bcdc88293821f2c894b2300b010683aa5ccc
parent4a3904f82cb2b5cbd815755576cb66c4ba962ce2 (diff)
downloadnixlib-07cdc02266e3854d914c966d0746fb29dcae8ba7.tar
nixlib-07cdc02266e3854d914c966d0746fb29dcae8ba7.tar.gz
nixlib-07cdc02266e3854d914c966d0746fb29dcae8ba7.tar.bz2
nixlib-07cdc02266e3854d914c966d0746fb29dcae8ba7.tar.lz
nixlib-07cdc02266e3854d914c966d0746fb29dcae8ba7.tar.xz
nixlib-07cdc02266e3854d914c966d0746fb29dcae8ba7.tar.zst
nixlib-07cdc02266e3854d914c966d0746fb29dcae8ba7.zip
all-packages: redirect 'mesa' attribute on Darwin to the native implementation
-rw-r--r--pkgs/top-level/all-packages.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 41e1e1d262b3..5b1a81a3b943 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -4588,7 +4588,8 @@ let
 
   darwinX11AndOpenGL = callPackage ../build-support/native-darwin-x11-and-opengl { };
 
-  mesa = callPackage ../development/libraries/mesa { };
+  mesa = if stdenv.isDarwin then darwinX11AndOpenGL else
+    callPackage ../development/libraries/mesa { };
 
   metaEnvironment = recurseIntoAttrs (let callPackage = newScope pkgs.metaEnvironment; in rec {
     sdfLibrary    = callPackage ../development/libraries/sdf-library { aterm = aterm28; };