mirror of
https://github.com/NixOS/nix.git
synced 2025-11-30 14:10:59 +01:00
GitArchiveInputScheme: Revert to downloading tarballs
Tarballs are now unpacked into a content-addressed cache, specifically a Git repository in ~/.cache/nix/tarball-cache so that we can use GitAccessor to provide random access.
This commit is contained in:
parent
b14830b23a
commit
5c29abc5bd
4 changed files with 243 additions and 69 deletions
|
|
@ -119,6 +119,10 @@ ref<InputAccessor> makePatchingInputAccessor(
|
|||
|
||||
ref<InputAccessor> makeGitInputAccessor(const CanonPath & path, const Hash & rev);
|
||||
|
||||
Hash importTarball(Source & source);
|
||||
|
||||
ref<InputAccessor> makeTarballCacheAccessor(const Hash & rev);
|
||||
|
||||
struct SourcePath
|
||||
{
|
||||
ref<InputAccessor> accessor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue