3
0
Fork 0
forked from mirrors/nixpkgs

plan9port: Do not fetch X11 build dependencies if building on darwin.

This commit is contained in:
Ramakrishnan Muthukrishnan 2014-04-15 10:52:12 +05:30
parent 38e81b5640
commit 420263ba50

View file

@ -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/";