The post delves into the intricacies of how Nix calculates hashes for store paths, emphasizing the concept of input-derived hashes. It explains how even minor changes, such as a comment in the derivation file, can result in a new store path, leading to extensive rebuilds. The post also covers fixed-output derivations (FOD) and how Nix replaces inputDrv paths during hash calculation to prevent unnecessary rebuilds. The process of constructing and hashing derivations is detailed with examples and code snippets.
Sort: