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
iay: init at 0.4.0 #204936
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.
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.
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>
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.
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.
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
homepage = "https://github.com/aaqaishtyaq/iay"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ omasanori ]; | ||
platforms = platforms.unix; |
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.
platforms = platforms.unix; |
that is the default for buildRustPackage, we don't want to repeat it
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.
OK, I will remove that line. Thanks!
pname = "iay"; | ||
version = "0.4.0"; | ||
|
||
src = fetchCrate { |
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.
There is a cargo lock in the repo https://github.com/aaqaishtyaq/iay/blob/trunk/Cargo.lock . Why not fetch that?
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.
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?
Description of changes
This adds iay, an utility program for shell prompt configuration.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes