git.iko.soy/typeable/nixpkgs
on master help sign in
plan9port: fix interpreter paths, add perl

Fixing interpreter paths was done by exporting PLAN9_TARGET, which INSTALL looks at. Giving $PLAN9 to INSTALL does not achieve this, as INSTALL only looks at its first argument so I removed the other arguments to avoid confusion. Perl is an optional dependency for a script that adds URLs to man pages, I have added it to get fewer errors during install.

commitd6e1ee5651346cafcec1ae1d1b747e8289d71fa6 authorKovacsics Robert (NixOS-SSD2) <kovirobi@gmail.com> dateThu 10 Sep 2015, 13:50 (11 years ago) parentd61df24
2 files changed+17−4
pkgs/tools/system/plan9port/builder.sh+3−2 pkgs/tools/system/plan9port/default.nix+14−2
pkgs/tools/system/plan9port/builder.sh+3−2
@@ -1,6 +1,7 @@
11source $stdenv/setup
22
33export PLAN9=$out/plan9
4+export PLAN9_TARGET=$PLAN9
45
56configurePhase()
67{
@@ -15,12 +16,12 @@ configurePhase()
1516buildPhase()
1617{
1718 mkdir -p $PLAN9
18− ./INSTALL -b $PLAN9
19+ ./INSTALL -b
1920}
2021
2122installPhase()
2223{
23− ./INSTALL -c -r $PLAN9
24+ ./INSTALL -c
2425 # Copy sources
2526 cp -R * $PLAN9
2627
pkgs/tools/system/plan9port/default.nix+14−2
@@ -1,7 +1,9 @@
11{stdenv, fetchgit, which, libX11, libXt, fontconfig
22, xproto ? null
33, xextproto ? null
4−, libXext ? null }:
4+, libXext ? null
5+ # For building web manuals
6+, perl ? null }:
57
68stdenv.mkDerivation rec {
79 name = "plan9port-2015-06-29";
@@ -23,7 +25,17 @@ stdenv.mkDerivation rec {
2325 builder = ./builder.sh;
2426
2527 NIX_LDFLAGS="-lgcc_s";
26− buildInputs = stdenv.lib.optionals (!stdenv.isDarwin) [ which libX11 fontconfig xproto libXt xextproto libXext ];
28+ buildInputs = stdenv.lib.optionals
29+ (!stdenv.isDarwin)
30+ [ which
31+ perl
32+ libX11
33+ fontconfig
34+ xproto
35+ libXt
36+ xextproto
37+ libXext
38+ ];
2739
2840 enableParallelBuilding = true;
2941