Skip to content

Minimal CA support#3740

Closed
thufschmitt wants to merge 5 commits intoNixOS:masterfrom
tweag:terminal-ca-derivations
Closed

Minimal CA support#3740
thufschmitt wants to merge 5 commits intoNixOS:masterfrom
tweag:terminal-ca-derivations

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

@thufschmitt thufschmitt force-pushed the terminal-ca-derivations branch from 0b4d3c3 to f6654ce Compare June 24, 2020 18:51
@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.

2 participants