John Ericson
20decfd302
Gate dynamic-derivations
with drv fromJSON
too
...
Don't want `nix derivation add` to be a way to sneak by experimental
feature checks!
2023-04-19 12:44:38 -04:00
John Ericson
76baaeb341
Merge remote-tracking branch 'upstream/master' into ca-drv-exotic
2023-04-19 11:32:14 -04:00
John Ericson
aa74c7b0bc
Gate experimental features in DerivationOutput::fromJSON
...
This is an entry point for outside data, so we need to check enabled
experimental features here.
2023-04-17 17:36:12 -04:00
John Ericson
e12efa3654
Merge remote-tracking branch 'upstream/master' into ca-drv-exotic
2023-04-17 10:16:57 -04:00
John Ericson
b200784cec
Include the name in the JSON for derivations
...
This is non-breaking change in the to-JSON direction. This *is* a
breaking change in the from-JSON direction, but we don't care, as that
is brand new in this PR.
`nix show-derivation --help` currently has the sole public documentation
of this format, it is updated accordingly.
2023-04-07 08:34:58 -04:00
John Ericson
fe9cbe838c
Create Derivation::fromJSON
...
And test, of course
2023-04-07 08:34:58 -04:00
John Ericson
5abd643c6d
Merge branch 'path-info' into ca-drv-exotic
2023-02-28 12:46:00 -05:00
John Ericson
208c8d326d
Derivation::toJSON
: fix bug!
...
When I moved this code from the binary to libnixstore #7863 , I forgot to
display the environment variables!
2023-02-20 17:38:57 -05:00
John Ericson
7998686c00
Test toJSON
of DerivationOutput
and Derivation
2023-02-19 11:12:12 -05:00