aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/src/command-ref
diff options
context:
space:
mode:
authorSilvan Mosberger <silvan.mosberger@tweag.io>2023-08-28 22:14:01 +0200
committerGitHub <noreply@github.com>2023-08-28 22:14:01 +0200
commit151120a1ae082c6460f9a54cf795c57d154f6c27 (patch)
tree0cc11203f4712f6eeb0bbf56589383a409ea6de0 /doc/manual/src/command-ref
parent736b9cede73692a1cf92a6c21c5259498a04c961 (diff)
Document nix-prefetch-url defaults (#8878)
Diffstat (limited to 'doc/manual/src/command-ref')
-rw-r--r--doc/manual/src/command-ref/nix-prefetch-url.md13
1 files changed, 8 insertions, 5 deletions
diff --git a/doc/manual/src/command-ref/nix-prefetch-url.md b/doc/manual/src/command-ref/nix-prefetch-url.md
index 3bcd209e2..45ef01e02 100644
--- a/doc/manual/src/command-ref/nix-prefetch-url.md
+++ b/doc/manual/src/command-ref/nix-prefetch-url.md
@@ -31,15 +31,18 @@ store already contains a file with the same hash and base name.
Otherwise, the file is downloaded, and an error is signaled if the
actual hash of the file does not match the specified hash.
-This command prints the hash on standard output. Additionally, if the
-option `--print-path` is used, the path of the downloaded file in the
-Nix store is also printed.
+This command prints the hash on standard output.
+The hash is printed using base-32 unless `--type md5` is specified,
+in which case it's printed using base-16.
+Additionally, if the option `--print-path` is used,
+the path of the downloaded file in the Nix store is also printed.
# Options
- `--type` *hashAlgo*\
- Use the specified cryptographic hash algorithm, which can be one of
- `md5`, `sha1`, `sha256`, and `sha512`.
+ Use the specified cryptographic hash algorithm,
+ which can be one of `md5`, `sha1`, `sha256`, and `sha512`.
+ The default is `sha256`.
- `--print-path`\
Print the store path of the downloaded file on standard output.