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

Make generating Cargo.nix in derivation easy #76

Closed
kolloch opened this issue Jan 26, 2020 · 1 comment
Closed

Make generating Cargo.nix in derivation easy #76

kolloch opened this issue Jan 26, 2020 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@kolloch
Copy link
Collaborator

kolloch commented Jan 26, 2020

Advantages:

  • The user does not have to regenerate Cargo.nix when another dependency from crates.io is added (since we can use the hash from the lock file).
  • The "opaque" package IDs will still contain local paths but they are the same for every user with a standard /nix/store location. So this solves Regeneration of Cargo.nix files for testing depends on local paths #47

This assumes that all hashes that need to be prefetched (git for now), have already been prefetched.

@kolloch kolloch added the enhancement New feature or request label Jan 26, 2020
kolloch added a commit that referenced this issue Jan 26, 2020
@kolloch kolloch added this to the 0.8 milestone Feb 10, 2020
@kolloch
Copy link
Collaborator Author

kolloch commented Feb 12, 2020

The tools.nix provides an API for doing this. I am adding documentation.

It does not work yet with sub modules. Creating another issue for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant