i3lock-fancy: 2016-05-05 -> 2016-10-13

This commit is contained in:
Tim Steinbach 2016-10-14 23:17:35 -04:00 committed by Graham Christensen
parent 70a6b404f6
commit 5e1c84e475
No known key found for this signature in database
GPG Key ID: FE918C3A98C1030F
1 changed files with 8 additions and 7 deletions

View File

@ -3,13 +3,13 @@
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
rev = "b7196aaff72b90bb6ea0464a9f7b37d140db3230"; rev = "546ce2e71bd2339f2134904c7d22062e86105b46";
name = "i3lock-fancy-2016-05-05_rev${builtins.substring 0 7 rev}"; name = "i3lock-fancy-unstable-2016-10-13_rev${builtins.substring 0 7 rev}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "meskarune"; owner = "meskarune";
repo = "i3lock-fancy"; repo = "i3lock-fancy";
inherit rev; inherit rev;
sha256 = "0az43nqhmbniih3yw9kz5lnky0n7mxylvklsib76s4l2alf6i3ps"; sha256 = "1pbxydwdfd7jlw3b8cnlwlrkqlyh5jyanfhjybndqmacd3y8vplb";
}; };
patchPhase = '' patchPhase = ''
sed -i -e "s|(mktemp)|(${coreutils}/bin/mktemp)|" lock sed -i -e "s|(mktemp)|(${coreutils}/bin/mktemp)|" lock
@ -19,15 +19,16 @@ stdenv.mkDerivation rec {
sed -i -e "s|awk -F|${gawk}/bin/awk -F|" 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| awk | ${gawk}/bin/awk |" lock
sed -i -e "s|i3lock -n |${i3lock-color}/bin/i3lock-color -n |" 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/icons/lockdark.png"|ICON="'$out'/share/i3lock-fancy/icons/lockdark.png"|' lock
sed -i -e 's|ICON="$SCRIPTPATH/lock.png"|ICON="'$out'/share/i3lock-fancy/lock.png"|' lock sed -i -e 's|ICON="$SCRIPTPATH/icons/lock.png"|ICON="'$out'/share/i3lock-fancy/icons/lock.png"|' lock
sed -i -e "s|getopt |${getopt}/bin/getopt |" lock sed -i -e "s|getopt |${getopt}/bin/getopt |" lock
sed -i -e "s|fc-match |${fontconfig.bin}/bin/fc-match |" lock sed -i -e "s|fc-match |${fontconfig.bin}/bin/fc-match |" lock
sed -i -e "s|SHOT=(import -window root)|SHOT=(${scrot}/bin/scrot -z)|" lock
''; '';
installPhase = '' installPhase = ''
mkdir -p $out/bin $out/share/i3lock-fancy mkdir -p $out/bin $out/share/i3lock-fancy/icons
cp lock $out/bin/i3lock-fancy cp lock $out/bin/i3lock-fancy
cp lock*.png $out/share/i3lock-fancy cp icons/lock*.png $out/share/i3lock-fancy/icons
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "i3lock is a bash script that takes a screenshot of the desktop, blurs the background and adds a lock icon and text."; description = "i3lock is a bash script that takes a screenshot of the desktop, blurs the background and adds a lock icon and text.";