forked from mirrors/nixpkgs
use mesaplatforms from lib
svn path=/nixpkgs/trunk/; revision=20302
This commit is contained in:
parent
dfca3bc039
commit
6dbcd591ef
|
@ -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
|
||||
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue