Branch: refs/heads/master
  Home:   https://github.com/NixOS/nix
  Commit: bec3c3160881fcedf226080f13739aee81adae1a
      
https://github.com/NixOS/nix/commit/bec3c3160881fcedf226080f13739aee81adae1a
  Author: Eelco Dolstra <[email protected]>
  Date:   2015-10-01 (Thu, 01 Oct 2015)

  Changed paths:
    M Makefile
    M scripts/local.mk
    R scripts/nix-prefetch-url.in
    M src/libutil/util.hh
    A src/nix-prefetch-url/local.mk
    A src/nix-prefetch-url/nix-prefetch-url.cc

  Log Message:
  -----------
  nix-prefetch-url: Rewrite in C++


  Commit: a3c4eb096456673b48f4fc35b76097d67e022141
      
https://github.com/NixOS/nix/commit/a3c4eb096456673b48f4fc35b76097d67e022141
  Author: Eelco Dolstra <[email protected]>
  Date:   2015-10-01 (Thu, 01 Oct 2015)

  Changed paths:
    M doc/manual/command-ref/nix-prefetch-url.xml
    M src/nix-prefetch-url/nix-prefetch-url.cc

  Log Message:
  -----------
  nix-prefetch-url: $PRINT_PATH -> --print-path


  Commit: 06f29fafe8496ae751e84a8ded0cc1041740cfe0
      
https://github.com/NixOS/nix/commit/06f29fafe8496ae751e84a8ded0cc1041740cfe0
  Author: Eelco Dolstra <[email protected]>
  Date:   2015-10-01 (Thu, 01 Oct 2015)

  Changed paths:
    M doc/manual/command-ref/nix-prefetch-url.xml
    M src/nix-prefetch-url/nix-prefetch-url.cc

  Log Message:
  -----------
  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


Compare: https://github.com/NixOS/nix/compare/bdc4a0b54d54...06f29fafe849
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to