From 681929cd4d4daa05dfdb89283dcda7f1f20a970d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Fri, 5 Mar 2010 22:10:54 +0000 Subject: [PATCH] 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 --- pkgs/applications/window-managers/dwm/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/window-managers/dwm/default.nix b/pkgs/applications/window-managers/dwm/default.nix index c24e4e583929..6f7a156e1aa8 100644 --- a/pkgs/applications/window-managers/dwm/default.nix +++ b/pkgs/applications/window-managers/dwm/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { 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 inherit patches;