at 15.09-beta 967 B view raw
1let lists = import ./lists.nix; in 2 3rec { 4 gnu = linux; /* ++ hurd ++ kfreebsd ++ ... */ 5 linux = ["i686-linux" "x86_64-linux" "armv5tel-linux" "armv6l-linux" "armv7l-linux" "mips64el-linux"]; 6 darwin = ["x86_64-darwin"]; 7 freebsd = ["i686-freebsd" "x86_64-freebsd"]; 8 openbsd = ["i686-openbsd" "x86_64-openbsd"]; 9 netbsd = ["i686-netbsd" "x86_64-netbsd"]; 10 cygwin = ["i686-cygwin" "x86_64-cygwin"]; 11 unix = linux ++ darwin ++ freebsd ++ openbsd; 12 all = linux ++ darwin ++ cygwin ++ freebsd ++ openbsd; 13 none = []; 14 allBut = platforms: lists.filter (x: !(builtins.elem x platforms)) all; 15 mesaPlatforms = ["i686-linux" "x86_64-linux" "x86_64-darwin" "armv5tel-linux" "armv6l-linux"]; 16 x86_64 = ["x86_64-linux" "x86_64-darwin" "x86_64-freebsd" "x86_64-openbsd" "x86_64-netbsd" "x86_64-cygwin"]; 17 i686 = ["i686-linux" "i686-freebsd" "i686-netbsd" "i686-cygwin"]; 18 arm = ["armv5tel-linux" "armv6l-linux" "armv7l-linux" ]; 19 mips = [ "mips64el-linux" ]; 20}