diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2007-06-12T16·53+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2007-06-12T16·53+0000 |
commit | 6d1a1191b053645fa0277830524bf085a7fe0956 (patch) | |
tree | 53ad5f6484b612ace6b82224a86cbf95028ea350 /src/nix-worker | |
parent | 9d9e1c5c41023e03ed5069ba6fc17ad3cfeab9f4 (diff) |
* Support queryDeriver() in multi-user installations.
Diffstat (limited to 'src/nix-worker')
-rw-r--r-- | src/nix-worker/nix-worker.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nix-worker/nix-worker.cc b/src/nix-worker/nix-worker.cc index 078362e9c37b..6ddf01bd017d 100644 --- a/src/nix-worker/nix-worker.cc +++ b/src/nix-worker/nix-worker.cc @@ -277,6 +277,15 @@ static void performOp(Source & from, Sink & to, unsigned int op) break; } + case wopQueryDeriver: { + Path path = readStorePath(from); + startWork(); + Path deriver = store->queryDeriver(path); + stopWork(); + writeString(deriver, to); + break; + } + case wopAddToStore: { /* !!! uberquick hack */ string baseName = readString(from); |