Make platforms.allBut accept a list rather than a single platform

This commit is contained in:
Luca Bruno
2014-08-09 12:28:16 +02:00
parent 9300470b5e
commit b331ae33d7
12 changed files with 22 additions and 22 deletions

View File

@@ -11,6 +11,6 @@ rec {
unix = linux ++ darwin ++ freebsd ++ openbsd;
all = linux ++ darwin ++ cygwin ++ freebsd ++ openbsd;
none = [];
allBut = platform: lists.filter (x: platform != x) all;
allBut = platforms: lists.filter (x: !(builtins.elem x platforms)) all;
mesaPlatforms = ["i686-linux" "x86_64-linux" "x86_64-darwin" "armv5tel-linux" "armv6l-linux"];
}