diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-02-14T13·20+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-02-14T13·20+0100 |
commit | 9ff9c3f2f80ba4108e9c945bbfda2c64735f987b (patch) | |
tree | 7ce169da649ca6e0a0cd88d6b85544d5c6038e95 /src/libstore/download.hh | |
parent | 62ff5ad424547630e70f35406da85fbb5ec3445a (diff) |
Add support for s3:// URIs
This adds support for s3:// URIs in all places where Nix allows URIs, e.g. in builtins.fetchurl, builtins.fetchTarball, <nix/fetchurl.nix> and NIX_PATH. It allows fetching resources from private S3 buckets, using credentials obtained from the standard places (i.e. AWS_* environment variables, ~/.aws/credentials and the EC2 metadata server). This may not be super-useful in general, but since we already depend on aws-sdk-cpp, it's a cheap feature to add.
Diffstat (limited to 'src/libstore/download.hh')
-rw-r--r-- | src/libstore/download.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/download.hh b/src/libstore/download.hh index 82b5d641fde9..bdb5011e7830 100644 --- a/src/libstore/download.hh +++ b/src/libstore/download.hh @@ -23,7 +23,7 @@ struct DownloadRequest struct DownloadResult { - bool cached; + bool cached = false; std::string etag; std::string effectiveUrl; std::shared_ptr<std::string> data; |