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

use crate2nix #499

Merged
merged 7 commits into from May 24, 2020
Merged

use crate2nix #499

merged 7 commits into from May 24, 2020

Conversation

LnL7
Copy link
Member

@LnL7 LnL7 commented May 24, 2020

We've run into various issues with carnix, some have been patched already but I'm not sure how to fix other issues like #498. Crate2nix seems to handle all of the cases we have ran into so far.

LnL7 added 3 commits May 24, 2020 12:52
It seems like the latest crate2nix depends on some changes to the rust
infrastructure in nixpkgs.

    error: cannot coerce null to a string, at pkgs/build-support/rust/build-rust-crate/configure-crate.nix:33:4
Crate2nix hasn't been added to nixpkgs yet so it needs to be pulled in
separately.
@andir
Copy link
Member

andir commented May 24, 2020 via email

@LnL7
Copy link
Member Author

LnL7 commented May 24, 2020

Yeah, but this is how it was before. Doesn't it make sense to ensure everything actually builds before updating?

@andir
Copy link
Member

andir commented May 24, 2020 via email

Copy link
Member

@cole-h cole-h left a comment

Choose a reason for hiding this comment

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

Probably want to remove Carnix from nix/overlay.nix and shell.nix, as well:

carnix = super.carnix.overrideDerivation (drv: {

carnix

Copy link
Member

@cole-h cole-h left a comment

Choose a reason for hiding this comment

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

+5,293 −7,724

Nice! LGTM. Hopefully this requires less patching than Carnix did ;)

LnL7 added 4 commits May 24, 2020 20:26
This works with --pure now so it doesn't depend on having anything
installed outside of the nix-shell shebang anymore.
@LnL7 LnL7 merged commit 65699e5 into NixOS:released May 24, 2020
@LnL7 LnL7 deleted the crate2nix branch May 24, 2020 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants