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 = ''
# patch paths
sed -i -e "s#i3lock#${pkgs.i3lock}/bin/i3lock#" i3lock-pixeled
sed -i -e "s#convert#${pkgs.imagemagick}/bin/convert#" i3lock-pixeled
sed -i -e "s#scrot#${pkgs.scrot}/bin/scrot#" i3lock-pixeled
sed -i -e "s#playerctl#${pkgs.playerctl}/bin/playerctl#" i3lock-pixeled
substituteInPlace i3lock-pixeled \
--replace i3lock "${pkgs.i3lock}/bin/i3lock" \
--replace convert "${pkgs.imagemagick}/bin/convert" \
--replace scrot "${pkgs.scrot}/bin/scrot" \
--replace playerctl "${pkgs.playerctl}/bin/playerctl#"
'';
meta = with stdenv.lib; {