summary refs log tree commit diff
path: root/pkgs/tools/system/plan9port
diff options
context:
space:
mode:
authorKovacsics Robert (NixOS-SSD2) <kovirobi@gmail.com>2015-09-10 13:50:51 +0100
committerKovacsics Robert (NixOS-SSD2) <kovirobi@gmail.com>2015-09-10 13:50:51 +0100
commitd6e1ee5651346cafcec1ae1d1b747e8289d71fa6 (patch)
treeb5e9225a0fcfb655b96ce337b1ed83c8ee939368 /pkgs/tools/system/plan9port
parentd61df24f36abe39ccf258ddf411d52cbcebf5a92 (diff)
downloadnixlib-d6e1ee5651346cafcec1ae1d1b747e8289d71fa6.tar
nixlib-d6e1ee5651346cafcec1ae1d1b747e8289d71fa6.tar.gz
nixlib-d6e1ee5651346cafcec1ae1d1b747e8289d71fa6.tar.bz2
nixlib-d6e1ee5651346cafcec1ae1d1b747e8289d71fa6.tar.lz
nixlib-d6e1ee5651346cafcec1ae1d1b747e8289d71fa6.tar.xz
nixlib-d6e1ee5651346cafcec1ae1d1b747e8289d71fa6.tar.zst
nixlib-d6e1ee5651346cafcec1ae1d1b747e8289d71fa6.zip
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.
Diffstat (limited to 'pkgs/tools/system/plan9port')
-rw-r--r--pkgs/tools/system/plan9port/builder.sh5
-rw-r--r--pkgs/tools/system/plan9port/default.nix16
2 files changed, 17 insertions, 4 deletions
diff --git a/pkgs/tools/system/plan9port/builder.sh b/pkgs/tools/system/plan9port/builder.sh
index 023ceef40f23..2434889581ed 100644
--- a/pkgs/tools/system/plan9port/builder.sh
+++ b/pkgs/tools/system/plan9port/builder.sh
@@ -1,6 +1,7 @@
 source $stdenv/setup
 
 export PLAN9=$out/plan9
+export PLAN9_TARGET=$PLAN9
 
 configurePhase()
 {
@@ -15,12 +16,12 @@ configurePhase()
 buildPhase()
 {
     mkdir -p $PLAN9
-    ./INSTALL -b $PLAN9
+    ./INSTALL -b
 }
 
 installPhase()
 {
-    ./INSTALL -c -r $PLAN9
+    ./INSTALL -c
     # Copy sources
     cp -R * $PLAN9
 
diff --git a/pkgs/tools/system/plan9port/default.nix b/pkgs/tools/system/plan9port/default.nix
index 86ce1f14a8c5..3a78cb2baf63 100644
--- a/pkgs/tools/system/plan9port/default.nix
+++ b/pkgs/tools/system/plan9port/default.nix
@@ -1,7 +1,9 @@
 {stdenv, fetchgit, which, libX11, libXt, fontconfig
 , xproto ? null
 , xextproto ? null
-, libXext ? null }:
+, libXext ? null
+  # For building web manuals
+, perl ? null }:
 
 stdenv.mkDerivation rec {
   name = "plan9port-2015-06-29";
@@ -23,7 +25,17 @@ stdenv.mkDerivation rec {
   builder = ./builder.sh;
 
   NIX_LDFLAGS="-lgcc_s";
-  buildInputs = stdenv.lib.optionals (!stdenv.isDarwin) [ which libX11 fontconfig xproto libXt xextproto libXext ];
+  buildInputs = stdenv.lib.optionals
+                  (!stdenv.isDarwin)
+                  [ which
+                    perl
+                    libX11
+                    fontconfig
+                    xproto
+                    libXt
+                    xextproto
+                    libXext
+                  ];
 
   enableParallelBuilding = true;