1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

ExternalDerivationBuilder: Emit a version field

This commit is contained in:
Eelco Dolstra 2025-10-06 11:36:26 +02:00
parent 68bd2e40f4
commit e9c5d721d8
2 changed files with 3 additions and 1 deletions

View file

@ -1419,7 +1419,8 @@ public:
"system": "aarch64-linux",
"tmpDir": "/private/tmp/nix-build-hello-2.12.2.drv-0/build",
"tmpDirInSandbox": "/build",
"topTmpDir": "/private/tmp/nix-build-hello-2.12.2.drv-0"
"topTmpDir": "/private/tmp/nix-build-hello-2.12.2.drv-0",
"version": 1
}
)",
{}, // aliases

View file

@ -49,6 +49,7 @@ struct ExternalDerivationBuilder : DerivationBuilderImpl
auto json = nlohmann::json::object();
json.emplace("version", 1);
json.emplace("builder", drv.builder);
{
auto l = nlohmann::json::array();