feat(3p/nix): Implement two more RPC calls

Implement AddTextToStore and BuildPaths both on the client and the
server

Refs: #29
Change-Id: I45294c3e1c1a7489e42099d36425b7acc04e0427
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1560
Reviewed-by: kanepyork <rikingcoding@gmail.com>
Tested-by: BuildkiteCI
This commit is contained in:
Griffin Smith 2020-08-01 20:23:53 -04:00 committed by glittershark
parent 8a1c7da357
commit 209489e348
4 changed files with 76 additions and 6 deletions

View file

@ -184,7 +184,10 @@ enum BuildMode { bmNormal, bmRepair, bmCheck };
// Convert the proto version of a `nix::proto::BuildMode` to its corresponding
// nix `BuildMode`
std::optional<BuildMode> build_mode_from(nix::proto::BuildMode mode);
std::optional<BuildMode> BuildModeFrom(nix::proto::BuildMode mode);
// Convert a `nix::BuildMode` to its corresponding proto representation
nix::proto::BuildMode BuildModeToProto(BuildMode mode);
struct BuildResult {
/* Note: don't remove status codes, and only add new status codes