Derivation::fromJSON
And test, of course
Derivation::toJSON
When I moved this code from the binary to libnixstore #7863, I forgot to display the environment variables!
toJSON
DerivationOutput
Derivation