13 stdenv.mkDerivation rec {
14 pname = "i3lock-fancy";
15 version = "unstable-2018-11-25";
17 src = fetchFromGitHub {
19 repo = "i3lock-fancy";
20 rev = "7accfb2aa2f918d1a3ab975b860df1693d20a81a";
21 sha256 = "00lqsvz1knb8iqy8lnkn3sf4c2c4nzb0smky63qf48m8za5aw9b1";
26 -e "s|mktemp|${coreutils}/bin/mktemp|" \
27 -e "s|'rm -f |'${coreutils}/bin/rm -f |" \
28 -e "s|scrot -z |${scrot}/bin/scrot -z |" \
29 -e "s|convert |${imagemagick.out}/bin/convert |" \
30 -e "s|awk -F|${gawk}/bin/awk -F|" \
31 -e "s| awk | ${gawk}/bin/awk |" \
32 -e "s|i3lock -i |${i3lock-color}/bin/i3lock-color -i |" \
33 -e 's|icon="/usr/share/i3lock-fancy/icons/lockdark.png"|icon="'$out'/share/i3lock-fancy/icons/lockdark.png"|' \
34 -e 's|icon="/usr/share/i3lock-fancy/icons/lock.png"|icon="'$out'/share/i3lock-fancy/icons/lock.png"|' \
35 -e "s|getopt |${getopt}/bin/getopt |" \
36 -e "s|fc-match |${fontconfig.bin}/bin/fc-match |" \
37 -e "s|shot=(import -window root)|shot=(${scrot}/bin/scrot -z -o)|"
42 mkdir -p $out/bin $out/share/i3lock-fancy/icons
43 cp i3lock-fancy $out/bin/i3lock-fancy
44 ln -s $out/bin/i3lock-fancy $out/bin/i3lock
45 cp icons/lock*.png $out/share/i3lock-fancy/icons
49 description = "i3lock is a bash script that takes a screenshot of the desktop, blurs the background and adds a lock icon and text";
50 homepage = "https://github.com/meskarune/i3lock-fancy";
51 maintainers = with maintainers; [ ];
52 license = licenses.mit;
53 platforms = platforms.linux;