forked from mirrors/nixpkgs
plan9port: Do not fetch X11 build dependencies if building on darwin.
This commit is contained in:
parent
38e81b5640
commit
420263ba50
|
@ -1,4 +1,8 @@
|
|||
{stdenv, fetchurl, libX11, xproto, libXt, xextproto, libXext}:
|
||||
{stdenv, fetchurl, libX11
|
||||
, xproto ? null
|
||||
, libXt ? null
|
||||
, xextproto ? null
|
||||
, libXext ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "plan9port-20140228";
|
||||
|
@ -12,7 +16,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1l7nsjfrrcq0l43kw0f1437jz3nyl9qw7i2vn0sbmcsv5vmsj0cr";
|
||||
};
|
||||
|
||||
buildInputs = [ libX11 xproto libXt xextproto libXext ];
|
||||
buildInputs = stdenv.lib.optionals (!stdenv.isDarwin) [ libX11 xproto libXt xextproto libXext ];
|
||||
|
||||
meta = {
|
||||
homepage = "http://swtch.com/plan9port/";
|
||||
|
|
Loading…
Reference in a new issue