2014-12-06 15:18:30 +00:00
|
|
|
{stdenv, fetchurl, which, libX11, libXt, fontconfig
|
2014-04-15 06:22:12 +01:00
|
|
|
, xproto ? null
|
|
|
|
, xextproto ? null
|
|
|
|
, libXext ? null }:
|
2009-03-23 21:31:30 +00:00
|
|
|
|
2011-01-10 19:41:58 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-07-31 05:38:00 +01:00
|
|
|
name = "plan9port-20140306";
|
2014-04-15 03:24:36 +01:00
|
|
|
|
|
|
|
patches = [ ./fontsrv.patch ];
|
|
|
|
|
2009-03-23 21:31:30 +00:00
|
|
|
builder = ./builder.sh;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2014-07-31 05:38:00 +01:00
|
|
|
url = "https://plan9port.googlecode.com/files/${name}.tgz";
|
2014-08-14 23:11:28 +01:00
|
|
|
# Google code is much faster than swtch
|
2014-07-31 05:38:00 +01:00
|
|
|
# url = "http://swtch.com/plan9port/${name}.tgz";
|
|
|
|
sha256 = "1sza12j3db7i54r3pzli8wmby6aiyzmyfj8w0nidmawkwv6jdf6b";
|
2009-03-23 21:31:30 +00:00
|
|
|
};
|
|
|
|
|
2014-12-06 15:18:30 +00:00
|
|
|
NIX_LDFLAGS="-lgcc_s";
|
|
|
|
buildInputs = stdenv.lib.optionals (!stdenv.isDarwin) [ which libX11 fontconfig xproto libXt xextproto libXext ];
|
2009-03-23 21:31:30 +00:00
|
|
|
|
2014-08-14 23:11:28 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2009-03-23 21:31:30 +00:00
|
|
|
homepage = "http://swtch.com/plan9port/";
|
|
|
|
description = "Plan 9 from User Space";
|
2014-08-15 01:06:45 +01:00
|
|
|
license = licenses.lpl-102;
|
2014-08-14 23:11:28 +01:00
|
|
|
platforms = platforms.unix;
|
2009-03-23 21:31:30 +00:00
|
|
|
};
|
2014-07-31 05:38:00 +01:00
|
|
|
|
|
|
|
inherit libXt;
|
2014-12-06 15:18:30 +00:00
|
|
|
inherit fontconfig;
|
2009-03-23 21:31:30 +00:00
|
|
|
}
|