diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-09-11 15:25:43 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-11-26 22:07:28 +0100 |
commit | 8918bae09828133259acb36d6aef60ffbfad252c (patch) | |
tree | 67cb5628c4fc537a4c42ba38a79dbf342215e36c /src/libutil/tarfile.hh | |
parent | f2bd8470926686361602e545d63a69d4bfc22f90 (diff) |
Drop remaining uses of external "tar"
Also, fetchGit now runs in O(1) memory since we pipe the output of
'git archive' directly into unpackTarball() (rather than first reading
it all into memory).
Diffstat (limited to 'src/libutil/tarfile.hh')
-rw-r--r-- | src/libutil/tarfile.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libutil/tarfile.hh b/src/libutil/tarfile.hh index c3e95fb0c..ce0911e2a 100644 --- a/src/libutil/tarfile.hh +++ b/src/libutil/tarfile.hh @@ -2,6 +2,9 @@ namespace nix { -void unpackTarfile(Source & source, Path destDir); +void unpackTarfile(Source & source, const Path & destDir); + +void unpackTarfile(const Path & tarFile, const Path & destDir, + std::optional<std::string> baseName = {}); } |