i3lock*: symlink for u2fSupport
Added symlink `i3lock` to the output binary, In order to enable `programs.i3lock.u2fSupport` which relies on file with name `i3lock` inside out dir.
This commit is contained in:
parent
1cd6b0681e
commit
131619a397
@ -25,6 +25,7 @@ stdenv.mkDerivation rec {
|
|||||||
installFlags = [ "PREFIX=\${out}" "SYSCONFDIR=\${out}/etc" "MANDIR=\${out}/share/man" ];
|
installFlags = [ "PREFIX=\${out}" "SYSCONFDIR=\${out}/etc" "MANDIR=\${out}/share/man" ];
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mv $out/bin/i3lock $out/bin/i3lock-color
|
mv $out/bin/i3lock $out/bin/i3lock-color
|
||||||
|
ln -s $out/bin/i3lock-color $out/bin/i3lock
|
||||||
mv $out/share/man/man1/i3lock.1 $out/share/man/man1/i3lock-color.1
|
mv $out/share/man/man1/i3lock.1 $out/share/man/man1/i3lock-color.1
|
||||||
sed -i 's/\(^\|\s\|"\)i3lock\(\s\|$\)/\1i3lock-color\2/g' $out/share/man/man1/i3lock-color.1
|
sed -i 's/\(^\|\s\|"\)i3lock\(\s\|$\)/\1i3lock-color\2/g' $out/share/man/man1/i3lock-color.1
|
||||||
'';
|
'';
|
||||||
|
@ -20,6 +20,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -D i3lock-fancy-rapid $out/bin/i3lock-fancy-rapid
|
install -D i3lock-fancy-rapid $out/bin/i3lock-fancy-rapid
|
||||||
|
ln -s $out/bin/i3lock-fancy-rapid $out/bin/i3lock
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -41,6 +41,7 @@ stdenv.mkDerivation rec {
|
|||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin $out/share/i3lock-fancy/icons
|
mkdir -p $out/bin $out/share/i3lock-fancy/icons
|
||||||
cp i3lock-fancy $out/bin/i3lock-fancy
|
cp i3lock-fancy $out/bin/i3lock-fancy
|
||||||
|
ln -s $out/bin/i3lock-fancy $out/bin/i3lock
|
||||||
cp icons/lock*.png $out/share/i3lock-fancy/icons
|
cp icons/lock*.png $out/share/i3lock-fancy/icons
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user