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:
parent
eff80419c7
commit
d52d391164
3 changed files with 13 additions and 9 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue