mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 05:31:22 +00:00
46d7a1ac7f
svn path=/nixpkgs/trunk/; revision=5931
17 lines
380 B
Bash
Executable file
17 lines
380 B
Bash
Executable file
source $stdenv/setup
|
|
|
|
configureFlags="--with-zlib=$zlib"
|
|
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.4/site-packages^" < configure.old > configure
|
|
chmod u+x configure
|
|
}
|
|
patchPhase=patchPhase
|
|
|
|
genericBuild
|