about summary refs log tree commit diff
path: root/tests/fixed.builder1.sh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-03-25T16·12+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-03-25T16·29+0100
commit000b5a000f8ceef9d79c7e8a9835fde9a98c367f (patch)
treecd984cf60991a2065850d4923a3a948c2e17343d /tests/fixed.builder1.sh
parent7ea6ecf855dee69a1cd938c3fe7e4e132be00b24 (diff)
Add fetchTarball builtin
This function downloads and unpacks the given URL at evaluation
time. This is primarily intended to make it easier to deal with Nix
expressions that have external dependencies. For instance, to fetch
Nixpkgs 14.12:

  with import (fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-14.12.tar.gz) {};

Or to fetch a specific revision:

  with import (fetchTarball https://github.com/NixOS/nixpkgs/archive/2766a4b44ee6eafae03a042801270c7f6b8ed32a.tar.gz) {};

This patch also adds a ‘fetchurl’ builtin that downloads but doesn't
unpack its argument. Not sure if it's useful though.
Diffstat (limited to 'tests/fixed.builder1.sh')
0 files changed, 0 insertions, 0 deletions