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