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

csv-tui: init at 1.1 #334839

Merged
merged 2 commits into from
Aug 19, 2024
Merged

csv-tui: init at 1.1 #334839

merged 2 commits into from
Aug 19, 2024

Conversation

ottoblep
Copy link
Contributor

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@smancill
Copy link
Contributor

Result of nixpkgs-review pr 334839 run on x86_64-darwin 1

1 package built:
  • csv-tui

@smancill
Copy link
Contributor

If I remember correctly you need to add yourself as maintainer in a different commit.

@ottoblep
Copy link
Contributor Author

If I remember correctly you need to add yourself as maintainer in a different commit.

Thanks, i missed that.

@smancill
Copy link
Contributor

Result of nixpkgs-review pr 334839 run on x86_64-darwin 1

1 package built:
  • csv-tui

Copy link
Member

@donovanglover donovanglover left a comment

Choose a reason for hiding this comment

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

Welcome to nixpkgs! The program seems relevant enough to include in nixpkgs. Just a few concerns below.


src = fetchFromGitHub {
owner = "nathangavin";
repo = pname;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
repo = pname;
repo = "csv-tui";

Avoid repo = pname;. See nix-community/nixpkgs-lint#21


cargoHash = "sha256-wgeVcX0zSXffAuvKw2eKXC846WlC8F9UGMoxP3IXoLE=";

meta = with lib; {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
meta = with lib; {
meta = {

Avoid with lib;. See #292468 (comment)

cargoHash = "sha256-wgeVcX0zSXffAuvKw2eKXC846WlC8F9UGMoxP3IXoLE=";

meta = with lib; {
description = "A terminal based csv editor which is designed to be not a ram hog like standard csv editors, but more useful than other text editors";
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
description = "A terminal based csv editor which is designed to be not a ram hog like standard csv editors, but more useful than other text editors";
description = "Terminal based csv editor designed to be not a ram hog like standard csv editors, but more useful than other text editors";

Refer to the meta.description rules here: https://github.com/NixOS/nixpkgs/tree/master/pkgs#meta-attributes

meta = with lib; {
description = "A terminal based csv editor which is designed to be not a ram hog like standard csv editors, but more useful than other text editors";
homepage = "https://github.com/nathangavin/csv-tui";
license = licenses.unfree;
Copy link
Member

Choose a reason for hiding this comment

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

Ask upstream to license this software so we can redistribute it. See: https://github.com/NixOS/nixpkgs/tree/master/pkgs#quick-start-to-adding-a-package

Copy link
Contributor

Choose a reason for hiding this comment

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

Agh, sorry I missed too many small details when checking the derivation.

@donovanglover
Copy link
Member

Additionally, I had to look through the source code to figure out what the keybinds were, so I don't think it's ready for general use yet.

@ottoblep
Copy link
Contributor Author

Additionally, I had to look through the source code to figure out what the keybinds were, so I don't think it's ready for general use yet.

All keybinds are annotated in the program itself except the arrow keys. I think it's actually very easy to use.

Copy link
Member

@donovanglover donovanglover left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for making the necessary changes and getting upstream to add a license.

I've used other CSV TUIs in the past and this one does seem simpler and easier to use, so let's go with it

@smancill
Copy link
Contributor

Result of nixpkgs-review pr 334839 run on x86_64-darwin 1

1 package built:
  • csv-tui

@smancill smancill merged commit 4b2b2d5 into NixOS:master Aug 19, 2024
25 of 27 checks passed
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.

4 participants