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