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:
dev-null-undefined 2022-12-18 16:43:05 +01:00
parent 1cd6b0681e
commit 131619a397
No known key found for this signature in database
GPG Key ID: 47230B659BA8E169
3 changed files with 3 additions and 0 deletions

View File

@ -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
''; '';

View File

@ -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; {

View File

@ -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
''; '';