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

Minimal CA support #3740

Closed
wants to merge 5 commits into from
Closed

Conversation

thufschmitt
Copy link
Member

First very limited support:

  • Only nix-build works properly with CA derivations (nix-store, nix build, etc.. will print and create a symlink to a non-existent output path)
  • It isn't possible to depend on a content-addressed derivation

Mostly taken out of #3528 with some changes to reuse the logic already in nix/make-content-addressable.cc.
Builds on top of #3678

/cc @edolstra @Ericson2314

@Ericson2314
Copy link
Member

It will probably be another day or two before I can properly read this, sorry.

Move the logic from the `nix make-content-addressed` nix command to a
new method in the `Store` class
This is required so that we can call LocalStore::makeContentAddressed on
paths that haven't been registered
Very limited atm:

- Only `nix-build` works properly (`nix-store`, `nix build`, etc.. will
  print and create a symlink to a non-existent output path)
- It isn't possible to depend on a content-addressed derivation
Otherwise `resolveDerivation` changes the name of the derivation (and as
a consequence its hash)
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

2 participants