mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
Document tarball downloading
This commit is contained in:
parent
c1323b53e3
commit
da196ec68f
6 changed files with 171 additions and 15 deletions
|
@ -212,6 +212,7 @@ Path downloadFileCached(const string & url, bool unpack)
|
|||
printMsg(lvlInfo, format("unpacking ‘%1%’...") % url);
|
||||
Path tmpDir = createTempDir();
|
||||
AutoDelete autoDelete(tmpDir, true);
|
||||
// FIXME: this requires GNU tar for decompression.
|
||||
runProgram("tar", true, {"xf", storePath, "-C", tmpDir, "--strip-components", "1"}, "");
|
||||
unpackedStorePath = store->addToStore(name, tmpDir, true, htSHA256, defaultPathFilter, false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue