mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-24 20:02:58 +03:00
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 }:
|
{ 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"
|
throw "unsupported platform for Mesa"
|
||||||
else
|
else
|
||||||
|
|
||||||
|
@ -11,5 +11,5 @@ rec {
|
|||||||
unix = linux ++ darwin ++ freebsd ++ openbsd;
|
unix = linux ++ darwin ++ freebsd ++ openbsd;
|
||||||
all = linux ++ darwin ++ cygwin ++ freebsd ++ openbsd;
|
all = linux ++ darwin ++ cygwin ++ freebsd ++ openbsd;
|
||||||
allBut = platform: lists.filter (x: platform != x) all;
|
allBut = platform: lists.filter (x: platform != x) all;
|
||||||
mesaPlatforms = linux;
|
mesaPlatforms = allBut [openbsd netbsd cygwin];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user