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
tab: init at 7.1 #67965
tab: init at 7.1 #67965
Conversation
|
||
checkPhase = ''make test''; | ||
|
||
installPhase = '' |
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.
- missing "runHook preInstall" and postInstall
- the 2 lines can be combined to
install -Dm555 -t $out/bin tab
- there seems to be docs the source - please install those too
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.
- Added hooks. Thanks.
- Yes, 2 lines can be combined, what would be an advantage of that solution, besides saving one line :) ?
- Yes, there are docs, but "make install" does not install them, and also installation instruciton says to just copy the excutable. Man page would be useful, but there isn't one. There is quite extensive help from the excutable though (
tab -h
).
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.
Regd docs, please copy them in. It's nicer for the end user if there is something more than just a binary regardless of what upstream installs.
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.
Yes, 2 lines can be combined, what would be an advantage of that solution, besides saving one line :) ?
install
allows you to create the directory, copy files, set permissions and set ownership all in one go which makes it much easier to read in general (not just in the context of nix) as it keeps everything that touches a certain file or set of files together in one place as opposed to spread out.
|
||
meta = with stdenv.lib; { | ||
description = "Programming language/shell calculator"; | ||
homepage = https://tkatchev.bitbucket.io/tab/; |
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.
quote the url
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.
Why do you recommend quoting? Most examples at Nixpkgs Contributors Guide are unquoted.
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.
Version 7.2 is available, so I am closing this PR, and submitting a new one: #71466 |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @