1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-04 15:31:47 +02:00

builtins.fetch{url,tarball}: Allow name attribute

This commit is contained in:
Shea Levy 2016-08-15 07:37:11 -04:00
parent eff80419c7
commit d52d391164
3 changed files with 13 additions and 9 deletions

View file

@ -29,7 +29,7 @@ struct Downloader
{
virtual DownloadResult download(string url, const DownloadOptions & options) = 0;
Path downloadCached(ref<Store> store, const string & url, bool unpack,
Path downloadCached(ref<Store> store, const string & url, bool unpack, string name = "",
const Hash & expectedHash = Hash());
enum Error { NotFound, Forbidden, Misc, Transient };