From 06f29fafe8496ae751e84a8ded0cc1041740cfe0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 1 Oct 2015 18:07:56 +0200 Subject: nix-prefetch-url: Support prefetching from a Nix expression MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For example, $ nix-prefetch-url -A hello.src will prefetch the file specified by the fetchurl call in the attribute ‘hello.src’ from the Nix expression in the current directory. This differs from ‘nix-build -A hello.src’ in that it doesn't verify the hash. You can also specify a path to the Nix expression: $ nix-prefetch-url ~/Dev/nixpkgs -A hello.src List elements (typically used in ‘patches’ attributes) also work: $ nix-prefetch-url -A portmidi.patches.0 --- doc/manual/command-ref/nix-prefetch-url.xml | 1 + 1 file changed, 1 insertion(+) (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 0f24bef39abf..9cbaa42a1b1f 100644 --- a/doc/manual/command-ref/nix-prefetch-url.xml +++ b/doc/manual/command-ref/nix-prefetch-url.xml @@ -20,6 +20,7 @@ nix-prefetch-url hashAlgo + url hash -- cgit 1.4.1