mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 23:12:44 +01:00
Store StructuredAttrs directly in Derivation
Instead of parsing a structured attrs at some later point, we parsed it right away when parsing the A-Term format, and likewise serialize it to `__json = <JSON dump>` when serializing a derivation to A-Term. The JSON format can directly contain the JSON structured attrs without so encoding it, so we just do that.
This commit is contained in:
parent
b062730665
commit
8652b6b417
16 changed files with 177 additions and 109 deletions
|
|
@ -222,7 +222,7 @@ Derivation makeSimpleDrv(const Store & store)
|
|||
"bar",
|
||||
"baz",
|
||||
};
|
||||
drv.env = {
|
||||
drv.env = StringPairs{
|
||||
{
|
||||
"BIG_BAD",
|
||||
"WOLF",
|
||||
|
|
@ -284,7 +284,7 @@ Derivation makeDynDepDerivation(const Store & store)
|
|||
"bar",
|
||||
"baz",
|
||||
};
|
||||
drv.env = {
|
||||
drv.env = StringPairs{
|
||||
{
|
||||
"BIG_BAD",
|
||||
"WOLF",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue