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
crate2nix: init at 0.8.0 #104027
crate2nix: init at 0.8.0 #104027
Conversation
Result of 1 package built:
|
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.
Looks fine, waiting for @andir to confirm.
crate2nix is a tool that "generates nix build files for rust crates using cargo". Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Wouldn't it make sense to include tools.nix as well to generate the build file on the fly? |
Can't say I've ever used |
crate2nix is a tool that "generates nix build files for rust crates
using cargo".
Motivation for this change
For flakes-enabled Rust projects, it would be very nice to rely on crate2nix through Nixpkgs, rather than having to add a non-flake input. If it's in Nixpkgs, it's built by Hydra, and the result will be uploaded to the cache, meaning users don't have to rebuild it every time (themselves, at least).
Closes nix-community/crate2nix#137.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)cc @andir @kolloch: I added you two as maintainers for obvious reasons -- if, for whatever reason, you'd rather not be added, let me know and I'll remove your name.