mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
Introduce top-level structuredAttrs
field in JSON derivation format
Makes the behavoral change of #13263 without the underlying refactor. Hopefully this clearly safe from a perf and GC perspective, and will make it easier to benchmark #13263.
This commit is contained in:
parent
c437e27abc
commit
f8c1ac9515
9 changed files with 169 additions and 21 deletions
|
@ -50,4 +50,4 @@ expectStderr 0 nix-instantiate --expr "$hackyExpr" --eval --strict | grepQuiet "
|
|||
|
||||
# Check it works with the expected structured attrs
|
||||
hacky=$(nix-instantiate --expr "$hackyExpr")
|
||||
nix derivation show "$hacky" | jq --exit-status '."'"$hacky"'".env.__json | fromjson | . == {"a": 1}'
|
||||
nix derivation show "$hacky" | jq --exit-status '."'"$hacky"'".structuredAttrs | . == {"a": 1}'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue