Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
tarball.hh
1#pragma once
2
3#include <optional>
4
5#include "hash.hh"
6#include "path.hh"
7#include "ref.hh"
8#include "types.hh"
9
10namespace nix {
11class Store;
12struct SourceAccessor;
13}
14
15namespace nix::fetchers {
16
17struct Settings;
18
20{
21 StorePath storePath;
22 std::string etag;
23 std::string effectiveUrl;
24 std::optional<std::string> immutableUrl;
25};
26
27DownloadFileResult downloadFile(
29 const std::string & url,
30 const std::string & name,
31 const Headers & headers = {});
32
34{
35 Hash treeHash;
36 time_t lastModified;
37 std::optional<std::string> immutableUrl;
38 ref<SourceAccessor> accessor;
39};
40
45ref<SourceAccessor> downloadTarball(
47 const Settings & settings,
48 const std::string & url);
49
50}
Definition path.hh:27
Definition store-api.hh:169
Definition ref.hh:15
ChunkedVector< std::string, 8192 > store
Definition lexer.l:1011
const std::string_view & name
Definition lexer.l:1709
Definition hash.hh:45
Definition source-accessor.hh:42
Definition tarball.hh:20
Definition tarball.hh:34
Definition fetch-settings.hh:15