I’d like to implement the logic to generate the nix hash of a directory.
I want to get the hash that nix hash path /path/to/dir gives you, but without relaying on nix (I want to re-implement that logic in a different programming language)
It looks to me that the C++ implementation is here:
But is that algorithm explained/documented somewhere?
I’m not sure if the details have changed, but nobbz might be thinking of Eelco’s thesis–I think there’s a section in there on the hashing at least: https://edolstra.github.io/pubs/phd-thesis.pdf