mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 22:51:22 +00:00
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 New Issue
Block a user