2014-07-31 05:38:00 +01:00
|
|
|
{stdenv, fetchurl, libX11, libXt
|
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";
|
|
|
|
# Google code is much faster than swtch
|
|
|
|
# url = "http://swtch.com/plan9port/${name}.tgz";
|
|
|
|
sha256 = "1sza12j3db7i54r3pzli8wmby6aiyzmyfj8w0nidmawkwv6jdf6b";
|
2009-03-23 21:31:30 +00:00
|
|
|
};
|
|
|
|
|
2014-04-15 06:22:12 +01:00
|
|
|
buildInputs = stdenv.lib.optionals (!stdenv.isDarwin) [ libX11 xproto libXt xextproto libXext ];
|
2009-03-23 21:31:30 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://swtch.com/plan9port/";
|
|
|
|
description = "Plan 9 from User Space";
|
|
|
|
license="free";
|
|
|
|
};
|
2014-07-31 05:38:00 +01:00
|
|
|
|
|
|
|
inherit libXt;
|
2009-03-23 21:31:30 +00:00
|
|
|
}
|