60f2081019
* Add "which" dependency, otherwise it builds with lots of "command not found" errors. * -lgcc_s, otherwise many commands basically fail without pthread_cancel. * Fix X11 dependencies, otherwise it would be plan9port with none of UI programs working.
21 lines
331 B
Bash
21 lines
331 B
Bash
set -e
|
|
source $stdenv/setup
|
|
|
|
tar xvfz $src
|
|
|
|
cd plan9port
|
|
|
|
echo CFLAGS=\"-I${fontconfig}/include -I${libXt}/include\" > LOCAL.config
|
|
echo X11=\"${libXt}/include\" >> LOCAL.config
|
|
|
|
for p in $patches; do
|
|
echo "applying patch $p"
|
|
patch -p1 < $p
|
|
done
|
|
|
|
./INSTALL -r $out/plan9
|
|
|
|
export PLAN9=$out/plan9
|
|
mkdir -p $PLAN9
|
|
cp -R * $PLAN9
|