diff options
Diffstat (limited to 'pkgs/tools/system/plan9port/default.nix')
-rw-r--r-- | pkgs/tools/system/plan9port/default.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/tools/system/plan9port/default.nix b/pkgs/tools/system/plan9port/default.nix index 39dba1c182d..ca248da56cf 100644 --- a/pkgs/tools/system/plan9port/default.nix +++ b/pkgs/tools/system/plan9port/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, libX11, libXt +{stdenv, fetchurl, which, libX11, libXt, fontconfig , xproto ? null , xextproto ? null , libXext ? null }: @@ -7,6 +7,11 @@ stdenv.mkDerivation rec { name = "plan9port-20140306"; patches = [ ./fontsrv.patch ]; + postPatch = + '' + substituteInPlace src/cmd/acme/acme.c \ + --replace /lib/font/bit $out/plan9/font + ''; builder = ./builder.sh; @@ -17,7 +22,8 @@ stdenv.mkDerivation rec { sha256 = "1sza12j3db7i54r3pzli8wmby6aiyzmyfj8w0nidmawkwv6jdf6b"; }; - buildInputs = stdenv.lib.optionals (!stdenv.isDarwin) [ libX11 xproto libXt xextproto libXext ]; + NIX_LDFLAGS="-lgcc_s"; + buildInputs = stdenv.lib.optionals (!stdenv.isDarwin) [ which libX11 fontconfig xproto libXt xextproto libXext ]; enableParallelBuilding = true; @@ -25,8 +31,10 @@ stdenv.mkDerivation rec { homepage = "http://swtch.com/plan9port/"; description = "Plan 9 from User Space"; license = licenses.lpl-102; + maintainers = [ stdenv.lib.maintainers.ftrvxmtrx ]; platforms = platforms.unix; }; inherit libXt; + inherit fontconfig; } |