about summary refs log tree commit diff
path: root/third_party/nix/src
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src')
-rw-r--r--third_party/nix/src/libstore/rpc-store.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/nix/src/libstore/rpc-store.cc b/third_party/nix/src/libstore/rpc-store.cc
index 993d111e8616..5d0ec1f9ebf4 100644
--- a/third_party/nix/src/libstore/rpc-store.cc
+++ b/third_party/nix/src/libstore/rpc-store.cc
@@ -381,8 +381,8 @@ BuildResult RpcStore::buildDerivation(const Path& drvPath,
   ClientContext ctx;
   proto::BuildDerivationRequest request;
   request.mutable_drv_path()->set_path(drvPath);
-  auto proto_drv = drv.to_proto();
-  request.set_allocated_derivation(&proto_drv);
+  proto::Derivation proto_drv = drv.to_proto();
+  *request.mutable_derivation() = proto_drv;
   request.set_build_mode(BuildModeToProto(buildMode));
 
   // Same note as in ::buildPaths ...