diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-05-05T15·09+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-05-05T15·09+0200 |
commit | 9451ef3731904090d7c8476137960a3fb9d4679d (patch) | |
tree | e1963c47fbba25a17f5a72670d774d28db229f1a /src/libexpr/download.hh | |
parent | 35d30d67ebcca90c3120eeaa7f38baee8805c670 (diff) |
Allow URLs in the Nix search path
E.g. to install "hello" from the latest Nixpkgs: $ nix-build '<nixpkgs>' -A hello -I nixpkgs=https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz Or to install a specific version of NixOS: $ nixos-rebuild switch -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/63def04891a0abc328b1b0b3a78ec02c58f48583.tar.gz
Diffstat (limited to 'src/libexpr/download.hh')
-rw-r--r-- | src/libexpr/download.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libexpr/download.hh b/src/libexpr/download.hh index 65396e5de329..36fa183d68f9 100644 --- a/src/libexpr/download.hh +++ b/src/libexpr/download.hh @@ -13,6 +13,8 @@ struct DownloadResult DownloadResult downloadFile(string url, string expectedETag = ""); +Path downloadFileCached(const string & url, bool unpack); + MakeError(DownloadError, Error) } |