diff --git a/pkgs/development/libraries/libxml2/builder.sh b/pkgs/development/libraries/libxml2/builder.sh new file mode 100755 index 00000000000..9ee072d12e5 --- /dev/null +++ b/pkgs/development/libraries/libxml2/builder.sh @@ -0,0 +1,16 @@ +. $stdenv/setup + +configureFlags="" +if test "$pythonSupport"; then + configureFlags="--with-python=$python $configureFlags" +fi + +patchPhase() { + echo "Patching" + mv configure configure.old + sed -e "s^pythondir=.*$^pythondir=$out/lib/python2.3/site-packages^" < configure.old > configure + chmod u+x configure +} +patchPhase=patchPhase + +genericBuild