mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
Derivation::toJSON
: fix bug!
When I moved this code from the binary to libnixstore #7863, I forgot to display the environment variables!
This commit is contained in:
parent
c7bd3a874f
commit
208c8d326d
@ -945,6 +945,7 @@ nlohmann::json Derivation::toJSON(const Store & store) const
|
|||||||
res["system"] = platform;
|
res["system"] = platform;
|
||||||
res["builder"] = builder;
|
res["builder"] = builder;
|
||||||
res["args"] = args;
|
res["args"] = args;
|
||||||
|
res["env"] = env;
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
@ -85,6 +85,9 @@ TEST_JSON(Derivation, impure,
|
|||||||
"bar",
|
"bar",
|
||||||
"baz"
|
"baz"
|
||||||
],
|
],
|
||||||
|
"env": {
|
||||||
|
"BIG_BAD": "WOLF"
|
||||||
|
},
|
||||||
"outputs": {}
|
"outputs": {}
|
||||||
})",
|
})",
|
||||||
({
|
({
|
||||||
@ -107,6 +110,12 @@ TEST_JSON(Derivation, impure,
|
|||||||
"bar",
|
"bar",
|
||||||
"baz",
|
"baz",
|
||||||
};
|
};
|
||||||
|
drv.env = {
|
||||||
|
{
|
||||||
|
"BIG_BAD",
|
||||||
|
"WOLF",
|
||||||
|
},
|
||||||
|
};
|
||||||
drv;
|
drv;
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user