-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
trashy: Generate and install man page #260782
base: master
Are you sure you want to change the base?
Conversation
It's probably not a big deal, but there seems to be a clash with https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/os-specific/darwin/trash/default.nix#L23-L24. Not sure if something should be done about it On second thought, there might actually not be a clash atm, since this only runs on linux and the other package only runs on darwin. |
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.
Can confirm man trash
and man trashy
works fine.
Result of nixpkgs-review pr 260782
run on x86_64-linux 1
1 package built:
- trashy
$out/bin/trash manpage > trash.1 | ||
cp trash.1 trashy.1 | ||
installManPage trash.1 trashy.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.
Considering oberblastmeister/trashy#106 is merged, will this work?
$out/bin/trash manpage > trash.1 | |
cp trash.1 trashy.1 | |
installManPage trash.1 trashy.1 | |
$out/bin/trash manpage > trashy.1 | |
installManPage trashy.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.
You may have to bump to 2.0.0-unstable-2023-XX-YY
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.
Nice catch! I meant to comment on this PR about that trashy PR getting merged. Maybe we should just wait until trashy gets a new release? Is it normal to do an unstable version bump for a package that has a release cadence?
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.
It's discouraged, and cherry picking a backward incompatible change as a patch without indicating so in the version is also disingenuous.
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.
If the release will take too long, then consider this in the meanwhile
$out/bin/trash manpage > trash.1 | |
cp trash.1 trashy.1 | |
installManPage trash.1 trashy.1 | |
$out/bin/trash manpage > trash.1 | |
installManPage trash.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.
Result of nixpkgs-review pr 260782
run on x86_64-linux 1
1 package built:
- trashy
$out/bin/trash manpage > trash.1 | ||
cp trash.1 trashy.1 | ||
installManPage trash.1 trashy.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.
You may have to bump to 2.0.0-unstable-2023-XX-YY
@@ -17,7 +17,10 @@ rustPlatform.buildRustPackage rec { | |||
installShellCompletion --cmd trash \ |
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.
See #308283
Description of changes
Adds a man page for the
trash
command from thetrashy
package. Bothman trash
and aliasman trashy
are installed.Since this is fairly insignificant I did not add a release note.
Tested with
nix shell --sandbox --file ./default.nix trashy
on a local nixpkgs branch with the added changes. Runningman trash
andman trashy
inside the shell successfully shows thetrashy
man page.Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)