From 758c9ee1bb0e9d4bea420420af93e0128fabf188 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 24 Jul 2020 12:56:19 +0200 Subject: Clean up the manpages --- doc/manual/src/command-ref/nix-prefetch-url.md | 38 ++++++++------------------ 1 file changed, 11 insertions(+), 27 deletions(-) (limited to 'doc/manual/src/command-ref/nix-prefetch-url.md') diff --git a/doc/manual/src/command-ref/nix-prefetch-url.md b/doc/manual/src/command-ref/nix-prefetch-url.md index f7de27402..688496969 100644 --- a/doc/manual/src/command-ref/nix-prefetch-url.md +++ b/doc/manual/src/command-ref/nix-prefetch-url.md @@ -1,32 +1,16 @@ -nix-prefetch-url +Title: nix-prefetch-url -1 +# Name -Nix +`nix-prefetch-url` - copy a file from a URL into the store and print its hash -nix-prefetch-url +# Synopsis -copy a file from a URL into the store and print its hash - -nix-prefetch-url - -\--version - -\--type - -hashAlgo - -\--print-path - -\--unpack - -\--name - -name - -url - -hash +`nix-prefetch-url` *url* [*hash*] + [`--type` *hashAlgo*] + [`--print-path`] + [`--unpack`] + [`--name` *name*] # Description @@ -77,11 +61,11 @@ Nix store is also printed. $ nix-prefetch-url ftp://ftp.gnu.org/pub/gnu/hello/hello-2.10.tar.gz 0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i - + $ nix-prefetch-url --print-path mirror://gnu/hello/hello-2.10.tar.gz 0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i /nix/store/3x7dwzq014bblazs7kq20p9hyzz0qh8g-hello-2.10.tar.gz - + $ nix-prefetch-url --unpack --print-path https://github.com/NixOS/patchelf/archive/0.8.tar.gz 079agjlv0hrv7fxnx9ngipx14gyncbkllxrp9cccnh3a50fxcmy7 /nix/store/19zrmhm3m40xxaw81c8cqm6aljgrnwj2-0.8.tar.gz -- cgit v1.2.3