Nix Hash: Difference between revisions
Artoria2e5 (talk | contribs) →Updating Packages: Sentence case, demote to <h3> |
m →Tools: add hint, how to get an SRI hash using `nix store prefetch-url` |
||
Line 37: | Line 37: | ||
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.) | ||
To get an SRI hash, which isn't supported by <code>nix-prefetch-url</code>, use <code>nix store prefetch-file https://...</code> instead. | |||
== Libraries == | == Libraries == |