I noticed that the patchPhase does not run postPatch, if there are no 'patches'.

So, I move what I had in postPatch to prePatch, which is run with or without 'patches'.


svn path=/nixpkgs/trunk/; revision=20440
This commit is contained in:
Lluís Batlle i Rossell 2010-03-05 22:10:54 +00:00
parent ba28274db7
commit 681929cd4d

View File

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
buildInputs = [ libX11 libXinerama ]; buildInputs = [ libX11 libXinerama ];
postPatch = ''sed -i "s@/usr/local@$out@" config.mk''; prePatch = ''set -x; sed -i "s@/usr/local@$out@" config.mk'';
# Allow users set their own list of patches # Allow users set their own list of patches
inherit patches; inherit patches;