New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i3lock-color: fix manpage-name and manpage #40095
Conversation
- rename manpage from i3lock.1 to i3lock-color.1 - change "i3lock" to "i3lock-color" in manpage-synopsis
@@ -25,6 +25,8 @@ stdenv.mkDerivation rec { | |||
installFlags = "PREFIX=\${out} SYSCONFDIR=\${out}/etc MANDIR=\${out}/share/man"; | |||
postInstall = '' | |||
mv $out/bin/i3lock $out/bin/i3lock-color | |||
mv $out/share/man/man1/i3lock.1 $out/share/man/man1/i3lock-color.1 | |||
sed -i 's/^\.B i3lock$/.B i3lock-color/' $out/share/man/man1/i3lock-color.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sed
expression does not catch all instances of i3lock
in the manpage, so it results in a mix. Please make sure the entire manpage consistently uses i3lock-color
after patching.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I've extended it.
@@ -25,6 +25,8 @@ stdenv.mkDerivation rec { | |||
installFlags = "PREFIX=\${out} SYSCONFDIR=\${out}/etc MANDIR=\${out}/share/man"; | |||
postInstall = '' | |||
mv $out/bin/i3lock $out/bin/i3lock-color | |||
mv $out/share/man/man1/i3lock.1 $out/share/man/man1/i3lock-color.1 | |||
sed -i 's/^\.B i3lock$/.B i3lock-color/' $out/share/man/man1/i3lock-color.1 | |||
''; | |||
meta = with stdenv.lib; { | |||
description = "A simple screen locker like slock"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While you're at it, can you please add a hint here on how this differs from regular i3lock
, for example
"A simple screen locker like slock, enhanced version with extra color options"
(feel free to come up with a better wording).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. This will be in a separate pull-request.
complete name-change from i3lock to i3lock-color: - rename /etc/pam.d/i3lock to /etc/pam.d/i3lock-color - change "i3lock" to "i3lock-color" everywhere in the manpage
Now, I've completely renamed everything:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manpage looks good now but /etc/pam.d/i3lock should not be renamed.
@@ -25,6 +25,9 @@ stdenv.mkDerivation rec { | |||
installFlags = "PREFIX=\${out} SYSCONFDIR=\${out}/etc MANDIR=\${out}/share/man"; | |||
postInstall = '' | |||
mv $out/bin/i3lock $out/bin/i3lock-color | |||
mv $out/etc/pam.d/i3lock $out/etc/pam.d/i3lock-color |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this line as it will cause problems with PAM authentication. The app starts PAM under the service name 'i3lock', so the file must be named /etc/pam.d/i3lock
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, LGTM now.
@GrahamcOfBorg build i3lock-color |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: i3lock-color Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: i3lock-color Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Attempted: i3lock-color Partial log (click to expand)
|
Motivation for this change
The manpage of i3lock-color should also be named i3lock-color (and not i3lock), and talk about i3lock-color (and not i3lock), so:
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)cc @garbas @malyn