logoalt Hacker News

a_t48today at 6:00 AM1 replyview on HN

IIRC Nix is checksummed in the hash of the source of the content, not the results.


Replies

microtonaltoday at 6:12 AM

Hash of a normalization of the derivation, so this roughly means source, dependencies and the ‘build recipe’. The exception are fixed-output derivations, which are typically content-hashed.

That said, a lot of work is done in content-addressed hashing, but AFAIK it’s not the default yet.