diff options
author | Alyssa <hi@alyssa.is> | 2019-04-18 10:50:41 +0200 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2019-04-23 09:57:05 +0000 |
commit | c94275a6584d5e50c99989f8d7a3e724584abf44 (patch) | |
tree | 509c3ccc7650f72c3f8c64f53b5b1b85e46db8ab /nixpkgs/pkgs/development/libraries/mesa/default.nix | |
parent | f649c6c70544a8897a78d17c6a311796b32a3560 (diff) | |
download | nixlib-c94275a6584d5e50c99989f8d7a3e724584abf44.tar nixlib-c94275a6584d5e50c99989f8d7a3e724584abf44.tar.gz nixlib-c94275a6584d5e50c99989f8d7a3e724584abf44.tar.bz2 nixlib-c94275a6584d5e50c99989f8d7a3e724584abf44.tar.lz nixlib-c94275a6584d5e50c99989f8d7a3e724584abf44.tar.xz nixlib-c94275a6584d5e50c99989f8d7a3e724584abf44.tar.zst nixlib-c94275a6584d5e50c99989f8d7a3e724584abf44.zip |
mesa: fix build without drm
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/mesa/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/mesa/default.nix | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/development/libraries/mesa/default.nix b/nixpkgs/pkgs/development/libraries/mesa/default.nix index c25c67a3f6e3..6c5d1a3e08ef 100644 --- a/nixpkgs/pkgs/development/libraries/mesa/default.nix +++ b/nixpkgs/pkgs/development/libraries/mesa/default.nix @@ -124,7 +124,9 @@ let self = stdenv.mkDerivation { # Last checked: v18.3.4 (enableFeature (stdenv.isLinux && elem "x11" eglPlatforms) "dri3") - (enableFeature stdenv.isLinux "nine") # Direct3D in Wine + # Direct3D in Wine + (enableFeature (any (d: d != "swrast") galliumDrivers) "nine") + "--enable-libglvnd" "--enable-dri" "--enable-driglx-direct" @@ -137,7 +139,10 @@ let self = stdenv.mkDerivation { (enableFeature (elem "swrast" galliumDrivers) "gallium-osmesa") "--enable-llvm" (enableFeature stdenv.isLinux "egl") - (enableFeature stdenv.isLinux "xa") # used in vmware driver + + # used in vmware driver + (enableFeature (any (d: d != "swrast") galliumDrivers) "xa") + (enableFeature stdenv.isLinux "gbm") (enableFeature (elem "x11" eglPlatforms) "xvmc") (enableFeature (elem "x11" eglPlatforms) "vdpau") @@ -222,15 +227,18 @@ let self = stdenv.mkDerivation { done # Update search path used by pkg-config - for pc in $dev/lib/pkgconfig/{d3d,dri,xatracker}.pc; do - substituteInPlace "$pc" --replace $out $drivers - done + substituteInPlace $dev/lib/pkgconfig/dri.pc --replace $out $drivers '' + optionalString (vulkanDrivers != []) '' # Update search path used by Vulkan (it's pointing to $out but # drivers are in $drivers) for js in $drivers/share/vulkan/icd.d/*.json; do substituteInPlace "$js" --replace "$out" "$drivers" done + '' + optionalString (any (d: d != "swrast") galliumDrivers) '' + # Update search path used by pkg-config + for pc in $dev/lib/pkgconfig/{d3d,xatracker}.pc; do + substituteInPlace "$pc" --replace $out $drivers + done ''; # TODO: |