mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
ExternalDerivationBuilder: Emit a version field
This commit is contained in:
parent
68bd2e40f4
commit
e9c5d721d8
2 changed files with 3 additions and 1 deletions
|
|
@ -1419,7 +1419,8 @@ public:
|
||||||
"system": "aarch64-linux",
|
"system": "aarch64-linux",
|
||||||
"tmpDir": "/private/tmp/nix-build-hello-2.12.2.drv-0/build",
|
"tmpDir": "/private/tmp/nix-build-hello-2.12.2.drv-0/build",
|
||||||
"tmpDirInSandbox": "/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
|
{}, // aliases
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ struct ExternalDerivationBuilder : DerivationBuilderImpl
|
||||||
|
|
||||||
auto json = nlohmann::json::object();
|
auto json = nlohmann::json::object();
|
||||||
|
|
||||||
|
json.emplace("version", 1);
|
||||||
json.emplace("builder", drv.builder);
|
json.emplace("builder", drv.builder);
|
||||||
{
|
{
|
||||||
auto l = nlohmann::json::array();
|
auto l = nlohmann::json::array();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue