forked from mirrors/nixpkgs
d2efe7785e
- Update to 20140306 - Fixed libXt dependency. The compiler could not find X11/IntrinsicP.h, even though it is available through the nix store. I think there must be some issue with the 9c compiler being used and not obeying the CFLAGS that nix is supposed to pass. There are probably other dependencies I'm missing, but 9c found in my /usr/include.
30 lines
707 B
Nix
30 lines
707 B
Nix
{stdenv, fetchurl, libX11, libXt
|
|
, xproto ? null
|
|
, xextproto ? null
|
|
, libXext ? null }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "plan9port-20140306";
|
|
|
|
patches = [ ./fontsrv.patch ];
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
|
url = "https://plan9port.googlecode.com/files/${name}.tgz";
|
|
# Google code is much faster than swtch
|
|
# url = "http://swtch.com/plan9port/${name}.tgz";
|
|
sha256 = "1sza12j3db7i54r3pzli8wmby6aiyzmyfj8w0nidmawkwv6jdf6b";
|
|
};
|
|
|
|
buildInputs = stdenv.lib.optionals (!stdenv.isDarwin) [ libX11 xproto libXt xextproto libXext ];
|
|
|
|
meta = {
|
|
homepage = "http://swtch.com/plan9port/";
|
|
description = "Plan 9 from User Space";
|
|
license="free";
|
|
};
|
|
|
|
inherit libXt;
|
|
}
|