From d6e1ee5651346cafcec1ae1d1b747e8289d71fa6 Mon Sep 17 00:00:00 2001 From: "Kovacsics Robert (NixOS-SSD2)" Date: Thu, 10 Sep 2015 13:50:51 +0100 Subject: [PATCH] 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. --- pkgs/tools/system/plan9port/builder.sh | 5 +++-- pkgs/tools/system/plan9port/default.nix | 16 ++++++++++++++-- 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;