3
0
Fork 0
forked from mirrors/nixpkgs

i3lock-fancy: use absolute paths (#17569)

When it's used from command line or as a i3 shortcut, i3lock-fancy works
without any issues. If you try to pass it as an argument to xss-lock or
xautolock running as a systemd user service, getopt and fc-match are not in
PATH and locking doesn't work as expected. This patch replaces non absolute
paths with stable ones and should fix the issue.
This commit is contained in:
Rail Aliiev 2016-08-06 21:42:43 -04:00 committed by Rok Garbas
parent 8dc53d76d5
commit d6d4cf185e

View file

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, coreutils, scrot, imagemagick, gawk
, i3lock-color
, i3lock-color, getopt, fontconfig
}:
stdenv.mkDerivation rec {
@ -21,6 +21,8 @@ stdenv.mkDerivation rec {
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
sed -i -e "s|getopt |${getopt}/bin/getopt |" lock
sed -i -e "s|fc-match |${fontconfig.bin}/bin/fc-match |" lock
'';
installPhase = ''
mkdir -p $out/bin $out/share/i3lock-fancy