3
0
Fork 0
forked from mirrors/nixpkgs

use mesaplatforms from lib

svn path=/nixpkgs/trunk/; revision=20302
This commit is contained in:
Rob Vermaas 2010-03-01 12:32:40 +00:00
parent dfca3bc039
commit 6dbcd591ef
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{ stdenv, fetchurl, pkgconfig, x11, xlibs, libdrm, expat }:
if stdenv.system != "i686-linux" && stdenv.system != "x86_64-linux" && stdenv.system != "i686-darwin" && stdenv.system != "i686-freebsd" then
if ! stdenv.lib.lists.elem stdenv.system stdenv.lib.platforms.mesaPlatforms then
throw "unsupported platform for Mesa"
else

View file

@ -11,5 +11,5 @@ rec {
unix = linux ++ darwin ++ freebsd ++ openbsd;
all = linux ++ darwin ++ cygwin ++ freebsd ++ openbsd;
allBut = platform: lists.filter (x: platform != x) all;
mesaPlatforms = linux;
mesaPlatforms = allBut [openbsd netbsd cygwin];
}