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

Content-addressable derivations support #373

Open
domenkozar opened this issue May 7, 2021 · 5 comments
Open

Content-addressable derivations support #373

domenkozar opened this issue May 7, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@domenkozar
Copy link
Member

This issue tracks CA derivations support and requests for it.

@TerrorJack
Copy link

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.

@domenkozar
Copy link
Member Author

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!

@ncfavier
Copy link

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

@domenkozar
Copy link
Member Author

cc @robbins @bbigras as you thumbed up

@domenkozar
Copy link
Member Author

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

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

3 participants