Skip to content
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

Closed
wants to merge 2 commits into from
Closed

tab: init at 7.1 #67965

wants to merge 2 commits into from

Conversation

mstarzyk
Copy link
Contributor

@mstarzyk mstarzyk commented Sep 2, 2019

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @

pkgs/tools/text/tab/default.nix Outdated Show resolved Hide resolved
pkgs/tools/text/tab/default.nix Outdated Show resolved Hide resolved
pkgs/tools/text/tab/default.nix Outdated Show resolved Hide resolved
pkgs/tools/text/tab/default.nix Outdated Show resolved Hide resolved
pkgs/tools/text/tab/default.nix Outdated Show resolved Hide resolved
pkgs/tools/text/tab/default.nix Outdated Show resolved Hide resolved

checkPhase = ''make test'';

installPhase = ''
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. missing "runHook preInstall" and postInstall
  2. the 2 lines can be combined to install -Dm555 -t $out/bin tab
  3. there seems to be docs the source - please install those too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Added hooks. Thanks.
  2. Yes, 2 lines can be combined, what would be an advantage of that solution, besides saving one line :) ?
  3. 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).

Copy link
Member

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.

Copy link
Member

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/;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quote the url

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mstarzyk
Copy link
Contributor Author

Version 7.2 is available, so I am closing this PR, and submitting a new one: #71466

@mstarzyk mstarzyk closed this Oct 20, 2019
@mstarzyk mstarzyk deleted the tab-7.1 branch October 20, 2019 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants