From a28b4445a4eb8108dfc028083d3939d5f3a42685 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 23 Oct 2012 18:04:00 +0200 Subject: nix-prefetch-url: Improve option handling --- doc/manual/nix-hash.xml | 5 +++-- doc/manual/nix-prefetch-url.xml | 24 +++++++++++++++++++----- 2 files changed, 22 insertions(+), 7 deletions(-) (limited to 'doc') diff --git a/doc/manual/nix-hash.xml b/doc/manual/nix-hash.xml index 007fc5410037..af4e361ff8d4 100644 --- a/doc/manual/nix-hash.xml +++ b/doc/manual/nix-hash.xml @@ -91,8 +91,9 @@ cryptographic hash as nix-store --dump hashAlgo - Specify a cryptographic hash, which can be one of - md5, sha1, and + Use the specified cryptographic hash algorithm, + which can be one of md5, + sha1, and sha256. diff --git a/doc/manual/nix-prefetch-url.xml b/doc/manual/nix-prefetch-url.xml index 0d953e9467bc..c416e675b05c 100644 --- a/doc/manual/nix-prefetch-url.xml +++ b/doc/manual/nix-prefetch-url.xml @@ -18,6 +18,7 @@ nix-prefetch-url + hashAlgo url hash @@ -45,11 +46,6 @@ download it again when you build your Nix expression. Since as nix-prefetch-url, the redundant download can be avoided. -The environment variable NIX_HASH_ALGO specifies -which hash algorithm to use. It can be either md5, -sha1, or sha256. The default is -sha256. - If hash is specified, then a download is not performed if the Nix store already contains a file with the same hash and base name. Otherwise, the file is downloaded, and an @@ -63,6 +59,24 @@ of the downloaded file in the Nix store is also printed. +Options + + + + hashAlgo + + Use the specified cryptographic hash algorithm, + which can be one of md5, + sha1, and + sha256. + + + + + + + + Examples -- cgit 1.4.1