diff --git a/pkgs/tools/system/plan9port/builder.sh b/pkgs/tools/system/plan9port/builder.sh index 1bd40aca07b1..2131a5bad868 100644 --- a/pkgs/tools/system/plan9port/builder.sh +++ b/pkgs/tools/system/plan9port/builder.sh @@ -1,4 +1,3 @@ -set -e source $stdenv/setup tar xvfz $src @@ -13,8 +12,12 @@ for p in $patches; do patch -p1 < $p done -./INSTALL -r $out/plan9 - export PLAN9=$out/plan9 mkdir -p $PLAN9 + +for f in `grep -l -r /usr/local/plan9`; do + sed "s,/usr/local/plan9,${PLAN9},g" -i $f +done + +./INSTALL -r $PLAN9 cp -R * $PLAN9 diff --git a/pkgs/tools/system/plan9port/default.nix b/pkgs/tools/system/plan9port/default.nix index 76087f553d67..709f83d3cbe9 100644 --- a/pkgs/tools/system/plan9port/default.nix +++ b/pkgs/tools/system/plan9port/default.nix @@ -26,6 +26,7 @@ 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; };