lix/src/nix-prefetch-url
Eelco Dolstra 06f29fafe8 nix-prefetch-url: Support prefetching from a Nix expression
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
2015-10-01 18:07:56 +02:00
..
local.mk nix-prefetch-url: Rewrite in C++ 2015-10-01 16:47:43 +02:00
nix-prefetch-url.cc nix-prefetch-url: Support prefetching from a Nix expression 2015-10-01 18:07:56 +02:00