cachix icon indicating copy to clipboard operation
cachix copied to clipboard

Content-addressable derivations support

Open domenkozar opened this issue 4 years ago • 5 comments

This issue tracks CA derivations support and requests for it.

domenkozar avatar May 07 '21 07:05 domenkozar

I tried adding contentAddressedByDefault = true; to nixpkgs config, building and pushing all build-time/run-time dependencies of pkgs.hello to a cachix bucket, but in another nix environment, it fails to find the artifacts in the cachix bucket and instead starts rebootstrapping stdenv. So indeed this seems to be unimplemented at the time being.

TerrorJack avatar Dec 21 '21 14:12 TerrorJack

I'd appreciate those that want to use CA support to say a few words why and how you're using them.

I'm currently not motivated yet to implement this, so it would help a lot!

domenkozar avatar Dec 21 '21 15:12 domenkozar

I'm using a CA derivation to avoid unnecessary rebuilds of the NixOS man page cache, which are slow:

https://github.com/ncfavier/config/blob/e78cb1b7191bfaa043bcd6d960ccf36052b863f5/modules/environment/default.nix#L5-L13

ncfavier avatar Dec 21 '21 19:12 ncfavier

cc @robbins @bbigras as you thumbed up

domenkozar avatar Dec 21 '21 20:12 domenkozar

There's absolutely zero documentation for this, so it's going to be a while to get it all right.

domenkozar avatar Apr 06 '24 14:04 domenkozar