It looks like nix refuses to have derivations in meta for some operations (eg. exporting as JSON):
|
bool DrvInfo::checkMeta(Value & v) |
This has caused NixOS/nixpkgs#50230, after the change in NixOS/nixpkgs#44439.
Currently, the solution appears to be to use passthru.tests instead of meta.tests, which is a possibility but appears semantically wrong.
Would it be possible to make Nix able to have derivations in meta? I think a legitimate display value for these would be the result of instantiating the derivation, without building it.
Alternatively, I think checkMeta should be called at each build, so that it's not possible to miss it like we did :)
It looks like nix refuses to have derivations in
metafor some operations (eg. exporting as JSON):nix/src/libexpr/get-drvs.cc
Line 166 in 6924bdf
This has caused NixOS/nixpkgs#50230, after the change in NixOS/nixpkgs#44439.
Currently, the solution appears to be to use
passthru.testsinstead ofmeta.tests, which is a possibility but appears semantically wrong.Would it be possible to make Nix able to have derivations in
meta? I think a legitimate display value for these would be the result of instantiating the derivation, without building it.Alternatively, I think
checkMetashould be called at each build, so that it's not possible to miss it like we did :)