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:
parent
ba28274db7
commit
681929cd4d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user