1
1
Fork 0
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:
Eelco Dolstra 2023-02-01 00:06:46 +01:00
parent b14830b23a
commit 5c29abc5bd
4 changed files with 243 additions and 69 deletions

View file

@ -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;