diff options
author | Jan Malakhovski <oxij@oxij.org> | 2018-11-07 09:07:48 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2018-11-08 05:20:19 +0000 |
commit | 3902085b3f5a2cb00d715a3c3da68dddeaae10dc (patch) | |
tree | 8124247d879a171338334fb42c677afbb4516490 /pkgs/development/libraries/mesa | |
parent | c0a4e467142591eb3d05aa3de41e3ac4cf63374e (diff) | |
download | nixpkgs-3902085b3f5a2cb00d715a3c3da68dddeaae10dc.tar nixpkgs-3902085b3f5a2cb00d715a3c3da68dddeaae10dc.tar.gz nixpkgs-3902085b3f5a2cb00d715a3c3da68dddeaae10dc.tar.bz2 nixpkgs-3902085b3f5a2cb00d715a3c3da68dddeaae10dc.tar.lz nixpkgs-3902085b3f5a2cb00d715a3c3da68dddeaae10dc.tar.xz nixpkgs-3902085b3f5a2cb00d715a3c3da68dddeaae10dc.tar.zst nixpkgs-3902085b3f5a2cb00d715a3c3da68dddeaae10dc.zip |
mesa: tiny cleanup
Diffstat (limited to 'pkgs/development/libraries/mesa')
-rw-r--r-- | pkgs/development/libraries/mesa/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index ff45162c5a8..d2539f8d54e 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -25,20 +25,20 @@ with stdenv.lib; -if ! lists.elem stdenv.hostPlatform.system platforms.mesaPlatforms then +if ! elem stdenv.hostPlatform.system platforms.mesaPlatforms then throw "unsupported platform for Mesa" else let defaultGalliumDrivers = - optionals (builtins.elem "drm" eglPlatforms) + optionals (elem "drm" eglPlatforms) (if stdenv.isAarch32 then ["virgl" "nouveau" "freedreno" "vc4" "etnaviv" "imx"] else if stdenv.isAarch64 then ["virgl" "nouveau" "vc4" ] else ["virgl" "svga" "i915" "r300" "r600" "radeonsi" "nouveau"]); defaultDriDrivers = - optionals (builtins.elem "drm" eglPlatforms) + optionals (elem "drm" eglPlatforms) (if (stdenv.isAarch32 || stdenv.isAarch64) then ["nouveau"] else ["i915" "i965" "nouveau" "radeon" "r200"]); |