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

Remove cargo2nix #668

Merged
merged 5 commits into from
Jul 10, 2023
Merged

Remove cargo2nix #668

merged 5 commits into from
Jul 10, 2023

Conversation

cfcosta
Copy link
Contributor

@cfcosta cfcosta commented Jul 6, 2023

This should make @KtorZ happy.

The whole idea is to avoid generating lots of intermediate derivations, so we can cache the whole build output, and require a special build step that can break the build every now and then.

The trade-off is that some dependencies might need more rebuild than usual, but the increase in reliability should more than cover it.

This commit changes from cargo2nix to just use `buildRustPackage`, which
does not generate itermediate crate derivations for the build. This
means that we lose dependency caching (for CI as well), but on the other
hand it becomes much more cacheable for people that actually use Nix to
add the dependencies.
@rvcas
Copy link
Member

rvcas commented Jul 6, 2023

Looks good to me but I don't really know nix so I'll wait for someone else to review.

@rvcas rvcas merged commit 1df232e into main Jul 10, 2023
2 checks passed
@rvcas rvcas deleted the cfcosta/remove_cargo2nix branch July 10, 2023 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🚀 Released
Development

Successfully merging this pull request may close these issues.

2 participants