Nix Hash: Difference between revisions

I don't believe we need a "hashes in nix" heading here. Again, sections are folded by default on mobile, so the "0th section" better has some content.
Line 35: Line 35:
== Tools ==
== Tools ==


[https://nixos.org/manual/nix/stable/command-ref/nix-hash.html nix-hash]
* [https://nixos.org/manual/nix/stable/command-ref/nix-hash.html nix-hash]
 
* [https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-hash nix hash] ([[nix command]])
[https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-hash nix hash]


When dealing with remote files, <code>nix-prefetch-url</code> offers a handy shortcut for downloading the file into the Nix store and printing out its hash. (<code>nix-prefetch-url --unpack</code> is its <code>fetchzip</code> equivalent.)
When dealing with remote files, <code>nix-prefetch-url</code> offers a handy shortcut for downloading the file into the Nix store and printing out its hash. (<code>nix-prefetch-url --unpack</code> is its <code>fetchzip</code> equivalent.)