Nix Hash: Difference between revisions
imported>Sternenseemann Add in depth comparison between nix hash{-path,-file}, nix to-{sri,base32,base16,base64} and nix-hash and correct mistake about nix-hash not supporting sha512 |
imported>Piegamesde |
||
Line 38: | Line 38: | ||
<code>fetchzip</code> on the other hand will download the file, unzip it and then recursively hash the output. There's no option. | <code>fetchzip</code> on the other hand will download the file, unzip it and then recursively hash the output. There's no option. | ||
The motivation behind this is that sometimes, the content is always the same, but the archive may change. This is because zip files are inherently non-deterministic, and might be generated automatically. If they are regenerated, they'll have a different hash, although the content is the same. <code>recursiveHash</code> works around that. | |||
=== Tools === | === Tools === |