i3lock-pixeled: use substituteInPlace

This commit is contained in:
Jörg Thalheim 2017-05-20 17:45:51 +01:00
parent 1e317150ef
commit 1deb1a30c8
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA

View File

@ -22,11 +22,11 @@ stdenv.mkDerivation rec {
]; ];
patchPhase = '' patchPhase = ''
# patch paths substituteInPlace i3lock-pixeled \
sed -i -e "s#i3lock#${pkgs.i3lock}/bin/i3lock#" i3lock-pixeled --replace i3lock "${pkgs.i3lock}/bin/i3lock" \
sed -i -e "s#convert#${pkgs.imagemagick}/bin/convert#" i3lock-pixeled --replace convert "${pkgs.imagemagick}/bin/convert" \
sed -i -e "s#scrot#${pkgs.scrot}/bin/scrot#" i3lock-pixeled --replace scrot "${pkgs.scrot}/bin/scrot" \
sed -i -e "s#playerctl#${pkgs.playerctl}/bin/playerctl#" i3lock-pixeled --replace playerctl "${pkgs.playerctl}/bin/playerctl#"
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {