Skip to content

Commit e9c5d72

Browse files
committed
ExternalDerivationBuilder: Emit a version field
1 parent 68bd2e4 commit e9c5d72

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/libstore/include/nix/store/globals.hh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,8 @@ public:
14191419
"system": "aarch64-linux",
14201420
"tmpDir": "/private/tmp/nix-build-hello-2.12.2.drv-0/build",
14211421
"tmpDirInSandbox": "/build",
1422-
"topTmpDir": "/private/tmp/nix-build-hello-2.12.2.drv-0"
1422+
"topTmpDir": "/private/tmp/nix-build-hello-2.12.2.drv-0",
1423+
"version": 1
14231424
}
14241425
)",
14251426
{}, // aliases

src/libstore/unix/build/external-derivation-builder.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ struct ExternalDerivationBuilder : DerivationBuilderImpl
4949

5050
auto json = nlohmann::json::object();
5151

52+
json.emplace("version", 1);
5253
json.emplace("builder", drv.builder);
5354
{
5455
auto l = nlohmann::json::array();

0 commit comments

Comments
 (0)