summary refs log tree commit diff
path: root/pkgs/development/libraries/mesa
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2018-11-07 09:07:48 +0000
committerJan Malakhovski <oxij@oxij.org>2018-11-08 05:20:19 +0000
commit3902085b3f5a2cb00d715a3c3da68dddeaae10dc (patch)
tree8124247d879a171338334fb42c677afbb4516490 /pkgs/development/libraries/mesa
parentc0a4e467142591eb3d05aa3de41e3ac4cf63374e (diff)
downloadnixpkgs-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.nix6
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"]);