mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
i3lock-fancy: 2017-12-14 -> 2018-11-25
This commit is contained in:
parent
a7df44f721
commit
c3e995fa73
@ -3,31 +3,32 @@
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
rev = "3734fba160166006521e513f5734eb76ac6aa48f";
|
||||
name = "i3lock-fancy-unstable-2017-12-14_rev${builtins.substring 0 7 rev}";
|
||||
rev = "7accfb2aa2f918d1a3ab975b860df1693d20a81a";
|
||||
name = "i3lock-fancy-unstable-2018-11-25_rev${builtins.substring 0 7 rev}";
|
||||
src = fetchFromGitHub {
|
||||
owner = "meskarune";
|
||||
repo = "i3lock-fancy";
|
||||
inherit rev;
|
||||
sha256 = "1bg4xds2hmbq8rp6azbdqvgp1aaq5y1bp05cfwqqm6y3sjw7ywzl";
|
||||
sha256 = "00lqsvz1knb8iqy8lnkn3sf4c2c4nzb0smky63qf48m8za5aw9b1";
|
||||
};
|
||||
patchPhase = ''
|
||||
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.out}/bin/convert |" 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 -i |${i3lock-color}/bin/i3lock-color -i |" 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/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|fc-match |${fontconfig.bin}/bin/fc-match |" lock
|
||||
sed -i -e "s|shot=(import -window root)|shot=(${scrot}/bin/scrot -z)|" lock
|
||||
sed -i -e "s|(mktemp)|(${coreutils}/bin/mktemp)|" i3lock-fancy
|
||||
sed -i -e "s|'rm -f |'${coreutils}/bin/rm -f |" i3lock-fancy
|
||||
sed -i -e "s|scrot -z |${scrot}/bin/scrot -z |" i3lock-fancy
|
||||
sed -i -e "s|convert |${imagemagick.out}/bin/convert |" i3lock-fancy
|
||||
sed -i -e "s|awk -F|${gawk}/bin/awk -F|" i3lock-fancy
|
||||
sed -i -e "s| awk | ${gawk}/bin/awk |" i3lock-fancy
|
||||
sed -i -e "s|i3lock -i |${i3lock-color}/bin/i3lock-color -i |" i3lock-fancy
|
||||
sed -i -e 's|icon="/usr/share/i3lock-fancy/icons/lockdark.png"|icon="'$out'/share/i3lock-fancy/icons/lockdark.png"|' i3lock-fancy
|
||||
sed -i -e 's|icon="/usr/share/i3lock-fancy/icons/lock.png"|icon="'$out'/share/i3lock-fancy/icons/lock.png"|' i3lock-fancy
|
||||
sed -i -e "s|getopt |${getopt}/bin/getopt |" i3lock-fancy
|
||||
sed -i -e "s|fc-match |${fontconfig.bin}/bin/fc-match |" i3lock-fancy
|
||||
sed -i -e "s|shot=(import -window root)|shot=(${scrot}/bin/scrot -z)|" i3lock-fancy
|
||||
rm Makefile
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share/i3lock-fancy/icons
|
||||
cp lock $out/bin/i3lock-fancy
|
||||
cp i3lock-fancy $out/bin/i3lock-fancy
|
||||
cp icons/lock*.png $out/share/i3lock-fancy/icons
|
||||
'';
|
||||
meta = with stdenv.lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user