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

iay: init at 0.4.0 #204936

Closed
wants to merge 1 commit into from
Closed

iay: init at 0.4.0 #204936

wants to merge 1 commit into from

Conversation

omasanori
Copy link
Contributor

@omasanori omasanori commented Dec 7, 2022

Description of changes

This adds iay, an utility program for shell prompt configuration.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • 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/)
  • 23.05 Release Notes (or backporting 22.11 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
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

Copy link
Member

@deejayem deejayem left a comment

Choose a reason for hiding this comment

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

nixpkgs-review pr 204936 ran succesfully for me on aarch64-linux (but failed on x86_64-darwin), and I was able to use the resulting binary to set my prompt.

pkgs/tools/misc/iay/default.nix Outdated Show resolved Hide resolved
iay is a tool to configure a shell prompt. It supports bash and zsh.

Signed-off-by: Masanori Ogino <167209+omasanori@users.noreply.github.com>
Copy link
Member

@deejayem deejayem left a comment

Choose a reason for hiding this comment

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

Built and tested on x86_64-linux, aarch64-linux and x86_64-darwin. Diff looks good to me. ofborg is still queued on aarch64-darwin, but everything else has passed.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-already-reviewed/2617/720

homepage = "https://github.com/aaqaishtyaq/iay";
license = licenses.mit;
maintainers = with maintainers; [ omasanori ];
platforms = platforms.unix;
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
platforms = platforms.unix;

that is the default for buildRustPackage, we don't want to repeat it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I will remove that line. Thanks!

pname = "iay";
version = "0.4.0";

src = fetchCrate {
Copy link
Member

Choose a reason for hiding this comment

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

There is a cargo lock in the repo https://github.com/aaqaishtyaq/iay/blob/trunk/Cargo.lock . Why not fetch that?

Copy link
Contributor Author

@omasanori omasanori Dec 12, 2022

Choose a reason for hiding this comment

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

Thank you for reviewing!

So, should fetchCrate be avoided if the repository has Cargo.lock? This is the first time I package a Rust program and https://nixos.org/manual/nixpkgs/stable/#rust does not mention whether fetchCrate is discouraged or not. Would you point out guidelines, if you are aware of any?

@AndersonTorres AndersonTorres mentioned this pull request Dec 24, 2022
13 tasks
@omasanori omasanori deleted the iay-0.4.0 branch December 24, 2022 14:37
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

6 participants