-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
taoup: init at 1.1.14 #136751
taoup: init at 1.1.14 #136751
Conversation
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 136751
run on x86_64-linux 1
1 package built:
- taoup
taoup --help
looks like it has some unintended output:
$ taoup --help
usage: /nix/store/7fyilmppfb39qvc93nv3lc6zqz1p68r1-taoup-1.1.13/lib/taoup/taoup [arguments]
/nix/store/7fyilmppfb39qvc93nv3lc6zqz1p68r1-taoup-1.1.13/lib/taoup/taoup Display all fortunes and sections.
/nix/store/7fyilmppfb39qvc93nv3lc6zqz1p68r1-taoup-1.1.13/lib/taoup/taoup < --help | -h > This help.
/nix/store/7fyilmppfb39qvc93nv3lc6zqz1p68r1-taoup-1.1.13/lib/taoup/taoup --whitetrash Convert ANSI colors for light/white terminals.
/nix/store/7fyilmppfb39qvc93nv3lc6zqz1p68r1-taoup-1.1.13/lib/taoup/taoup --machine Remove ANSI colors.
/nix/store/7fyilmppfb39qvc93nv3lc6zqz1p68r1-taoup-1.1.13/lib/taoup/taoup --fortune Convert output to fortune format (and lose colors).
Is the full path expected there? It looks a bit cluttered to me.
I've also commented on a couple of minor things in the code.
I'm new to nix, I hope it is ok for me to review things like this (and potentially have no idea what I am talking about).
This looks like an interesting program, thank you for packaging it :)
@Aegyo thanks for the review, it is indeed helpful! 🙏 Thanks for pointing out the |
a06b2f8
to
2132d81
Compare
Result of 1 package built:
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
2132d81
to
7f96c59
Compare
I expect package builds to fail as #138240 (which brings in |
7f96c59
to
a33f647
Compare
a33f647
to
6c64350
Compare
Thanks @SuperSandro2000 ! 🙏 🎉 |
Motivation for this change
https://github.com/globalcitizen/taoup is a
fortune
-like tool that tells some words of wisdom from The Art of Unix Programming and other sources.Some patches are included to simplify the
taoup-fortune
example script (which tries to produce a cache directory at first run - we instead create and populate this at build time,) andtaoup
itself (which tries to test fortput
- avoid that and just depend onncurses
to provide that instead.)I suspect some improvements can be made still at the
postPatch
andinstallPhase
steps - I'd love to hear anyone's guidance on this 🙏 Thanks!Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)