-
Notifications
You must be signed in to change notification settings - Fork 86
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
How to add overrides to defaultCrateOverrides
#15
Comments
Note that this is part of the "standard" Some rudimentary doc is here: https://git.mayflower.de/NixOS/nixpkgs/blob/master/doc/languages-frameworks/rust.md#compiling-rust-crates-using-nix-instead-of-cargo I appreciate pull requests for the |
Could you give a hint of how to do this? Normally
However, the file generated by crate2nix uses Something like the above fails with:
|
Just to confirm, if I apply this diff to the generated Nix file, I can use - buildRustCrateWithFeatures = {packageId, features}:
- lib.makeOverridable
- ({features}: buildRustCrateWithFeaturesImpl {inherit packageId features;})
- { inherit features; };
+ buildRustCrateWithFeatures = buildRustCrateWithFeaturesImpl; |
You could also override the defaultCrateOverrides in pkgs with an overlay. Thanks for the detective work. I'll add crateOverrides to the overridable parameters since it would be an incompatibility otherwise. |
The README mentions
But it’s not clear to me how that can be done. For example, I can’t find the string
defaultCrateOverrides
in the generated nix file.The text was updated successfully, but these errors were encountered: