diff options
author | Griffin Smith <grfn@gws.fyi> | 2020-07-23T16·35-0400 |
---|---|---|
committer | glittershark <grfn@gws.fyi> | 2020-07-25T20·11+0000 |
commit | dcaba9de64354fa699ee6b292efbedfb984582db (patch) | |
tree | 00d82d265d06eec49d6b729941d803801f34707b /third_party/nix/src/libstore/derivations.cc | |
parent | 7c56fccdad85c5d99c1a79e0768ce3d20aac82e9 (diff) |
feat(3p/nix): Add main function for grpc daemon r/1472
Implement the main function for the new, proto-based nix daemon. This mostly replicates the behavior of the previous nix daemon - it starts a grpc server listening on the same nix socket path and supports the same set of options - with the exception of --stdio, which has been renamed to --pipe and documented in the man page. Change-Id: Ib729283c1d5d35c0e1b0a968bc1f052f5527f2d7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1356 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: kanepyork <rikingcoding@gmail.com>
Diffstat (limited to 'third_party/nix/src/libstore/derivations.cc')
-rw-r--r-- | third_party/nix/src/libstore/derivations.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/nix/src/libstore/derivations.cc b/third_party/nix/src/libstore/derivations.cc index 419fc584f1fe..18b313385ca5 100644 --- a/third_party/nix/src/libstore/derivations.cc +++ b/third_party/nix/src/libstore/derivations.cc @@ -31,11 +31,11 @@ void DerivationOutput::parseHashInfo(bool& recursive, Hash& hash) const { } BasicDerivation BasicDerivation::from_proto( - const nix::proto::Derivation* proto_derivation, const nix::Store* store) { + const nix::proto::Derivation* proto_derivation, const nix::Store& store) { BasicDerivation result; result.platform = proto_derivation->platform(); result.builder = proto_derivation->builder().path(); - store->assertStorePath(result.builder); + store.assertStorePath(result.builder); result.outputs.insert(proto_derivation->outputs().begin(), proto_derivation->outputs().end()); |