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:
parent
8a1c7da357
commit
209489e348
4 changed files with 76 additions and 6 deletions
5
third_party/nix/src/libstore/store-api.hh
vendored
5
third_party/nix/src/libstore/store-api.hh
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue