From 3e03b921a10b4ee8a5118c71dd0518efd4f879b4 Mon Sep 17 00:00:00 2001 From: Moritz Ulrich Date: Thu, 10 Sep 2015 19:44:17 +0200 Subject: [PATCH] Herbstluftwm: Fix zsh completion. Files where installed in the wrong directory. This commit also replaces sed with substituteInPlace. --- pkgs/applications/window-managers/herbstluftwm/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/window-managers/herbstluftwm/default.nix b/pkgs/applications/window-managers/herbstluftwm/default.nix index c4b265f4b41..8b6422df828 100644 --- a/pkgs/applications/window-managers/herbstluftwm/default.nix +++ b/pkgs/applications/window-managers/herbstluftwm/default.nix @@ -9,9 +9,10 @@ stdenv.mkDerivation rec { }; patchPhase = '' - sed -i -e "s:/usr/local:$\{out}:" \ - -e "s:/etc:$\{out}/etc:" \ - config.mk + substituteInPlace config.mk \ + --replace "/usr/local" "$out" \ + --replace "/etc" "$out/etc" \ + --replace "/zsh/functions/Completion/X" "/zsh/site-functions" ''; buildInputs = [ pkgconfig glib libX11 libXext libXinerama ];