summary refs log tree commit diff
path: root/pkgs/tools/system/plan9port/builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/system/plan9port/builder.sh')
-rw-r--r--pkgs/tools/system/plan9port/builder.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/tools/system/plan9port/builder.sh b/pkgs/tools/system/plan9port/builder.sh
index 729da7015d9a..f97706fa7190 100644
--- a/pkgs/tools/system/plan9port/builder.sh
+++ b/pkgs/tools/system/plan9port/builder.sh
@@ -2,14 +2,17 @@ source $stdenv/setup
 
 tar xvfz $src
 
-cd plan9
+cd plan9port
+
+cflags="echo \"CFLAGS='-I${libXt}/include'\" >> \$PLAN9/config"
+
+sed -i "43i\\${cflags}" INSTALL
 
 for p in $patches; do
   echo "applying patch $p"
   patch -p1 < $p
 done
 
-./INSTALL -b
 ./INSTALL -r $out/plan9
 
 export PLAN9=$out/plan9