Herbstluftwm: Fix zsh completion.

Files where installed in the wrong directory. This commit also replaces
sed with substituteInPlace.
This commit is contained in:
Moritz Ulrich 2015-09-10 19:44:17 +02:00
parent 83fe2a4bfa
commit 3e03b921a1

View file

@ -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 ];