From f08449ccbd2009b858aae18341aedf3d0829b91a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 7 Oct 2015 14:55:33 +0200 Subject: nix-prefetch-url: Add --name option This allows overriding the name component of the resulting Nix store path, which is necessary if the base name of the URI contains "illegal" characters. --- doc/manual/command-ref/nix-prefetch-url.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/manual') diff --git a/doc/manual/command-ref/nix-prefetch-url.xml b/doc/manual/command-ref/nix-prefetch-url.xml index e1f0c8e5447c..016d8863a94c 100644 --- a/doc/manual/command-ref/nix-prefetch-url.xml +++ b/doc/manual/command-ref/nix-prefetch-url.xml @@ -91,6 +91,18 @@ downloaded file in the Nix store is also printed. + + + Override the name of the file in the Nix store. By + default, this is + hash-basename, + where basename is the last component of + url. Overriding the name is necessary + when basename contains characters that + are not allowed in Nix store paths. + + + -- cgit 1.4.1