make mesa inputs more specific

This commit is contained in:
Jude Taylor 2015-10-28 10:55:38 -07:00
parent 31fa564076
commit 1786f6bd4d
2 changed files with 7 additions and 7 deletions

View file

@ -2,7 +2,7 @@
, python, libxml2Python, file, expat, makedepend, xorg, llvm, libffi, libvdpau
, enableTextureFloats ? false # Texture floats are patented, see docs/patents.txt
, enableExtraFeatures ? false # not maintained
, darwin
, OpenGL, apple_sdk, Xplugin
}:
let
@ -23,11 +23,7 @@ let
presentproto
libX11 libXext libxcb libXt libxshmfence
libffi libvdpau
] ++ stdenv.lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.OpenGL
darwin.apple_sdk.sdk
darwin.apple_sdk.libs.Xplugin
];
] ++ stdenv.lib.optionals stdenv.isDarwin [ OpenGL apple_sdk.sdk Xplugin ];
postUnpack = ''
ln -s darwin $sourceRoot/configs/current

View file

@ -7623,7 +7623,11 @@ let
mesaSupported = lib.elem system lib.platforms.mesaPlatforms;
mesaDarwinOr = alternative: if stdenv.isDarwin
then callPackage ../development/libraries/mesa-darwin { }
then callPackage ../development/libraries/mesa-darwin {
inherit (darwin.apple_sdk.frameworks) OpenGL;
inherit (darwin.apple_sdk.libs) Xplugin;
inherit (darwin) apple_sdk;
}
else alternative;
mesa_noglu = mesaDarwinOr (callPackage ../development/libraries/mesa {
# makes it slower, but during runtime we link against just mesa_drivers