1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-21 17:59:36 +01:00

* addToStore() in nix-worker: don't write the NAR dump received from

the client to a temporary directory, as that is highly inefficient.
This commit is contained in:
Eelco Dolstra 2008-12-03 18:05:14 +00:00
parent 5eaf644c99
commit 82ae85de27
3 changed files with 85 additions and 25 deletions

View file

@ -93,6 +93,13 @@ public:
bool recursive = true, HashType hashAlgo = htSHA256,
PathFilter & filter = defaultPathFilter);
/* Like addToStore(), but the contents of the path are contained
in `dump', which is either a NAR serialisation (if recursive ==
true) or simply the contents of a regular file (if recursive ==
false). */
Path addToStoreFromDump(const string & dump, const string & name,
bool recursive = true, HashType hashAlgo = htSHA256);
Path addTextToStore(const string & name, const string & s,
const PathSet & references);