forked from mirrors/nixpkgs
i3lock-fancy: fix patching of the script
This commit is contained in:
parent
9c20849da4
commit
b614d72f40
|
@ -12,14 +12,15 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0az43nqhmbniih3yw9kz5lnky0n7mxylvklsib76s4l2alf6i3ps";
|
||||
};
|
||||
patchPhase = ''
|
||||
sed -i -e "s|mktemp|${coreutils}/bin/mktemp|" lock
|
||||
sed -i -e "s|\`pwd\`|$out/share/i3lock-fancy|" lock
|
||||
sed -i -e "s|dirname|${coreutils}/bin/dirname|" lock
|
||||
sed -i -e "s|rm |${coreutils}/bin/rm |" lock
|
||||
sed -i -e "s|scrot |${scrot}/bin/scrot |" lock
|
||||
sed -i -e "s|(mktemp)|(${coreutils}/bin/mktemp)|" lock
|
||||
sed -i -e "s|'rm -f |'${coreutils}/bin/rm -f |" lock
|
||||
sed -i -e "s|scrot -z |${scrot}/bin/scrot -z |" lock
|
||||
sed -i -e "s|convert |${imagemagick}/bin/convert |" lock
|
||||
sed -i -e "s|awk |${gawk}/bin/awk|" lock
|
||||
sed -i -e "s|i3lock |${i3lock-color}/bin/i3lock-color |" lock
|
||||
sed -i -e "s|awk -F|${gawk}/bin/awk -F|" lock
|
||||
sed -i -e "s| awk | ${gawk}/bin/awk |" lock
|
||||
sed -i -e "s|i3lock -n |${i3lock-color}/bin/i3lock-color -n |" lock
|
||||
sed -i -e 's|ICON="$SCRIPTPATH/lockdark.png"|ICON="'$out'/share/i3lock-fancy/lockdark.png"|' lock
|
||||
sed -i -e 's|ICON="$SCRIPTPATH/lock.png"|ICON="'$out'/share/i3lock-fancy/lock.png"|' lock
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share/i3lock-fancy
|
||||
|
|
Loading…
Reference in a new issue