3
0
Fork 0
forked from mirrors/nixpkgs

mod_python: Avoid that git is called to generate a version

This failed when building mod_python and resulted in a broken
value being included in the file "version.py".
This commit is contained in:
Johannes Bornhold 2015-05-25 18:24:22 +02:00
parent 3532d658b5
commit 2ed4587b61

View file

@ -10,6 +10,12 @@ stdenv.mkDerivation rec {
patches = [ ./install.patch ];
postPatch = ''
substituteInPlace dist/version.sh \
--replace 'GIT=`git describe --always`' "" \
--replace '-$GIT' ""
'';
preInstall = ''
installFlags="LIBEXECDIR=$out/modules $installFlags"
mkdir -p $out/modules $out/bin