From 2ed4587b61f0a9b1f8d95c0663d9de633a48853b Mon Sep 17 00:00:00 2001 From: Johannes Bornhold Date: Mon, 25 May 2015 18:24:22 +0200 Subject: [PATCH] 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". --- pkgs/servers/http/apache-modules/mod_python/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/servers/http/apache-modules/mod_python/default.nix b/pkgs/servers/http/apache-modules/mod_python/default.nix index 08f5d745684..d156576b21a 100644 --- a/pkgs/servers/http/apache-modules/mod_python/default.nix +++ b/pkgs/servers/http/apache-modules/mod_python/default.nix @@ -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