tests: remove type passthrough

Nix can only build attrsets with a `type = "derivation"` attr.

Having the configuration's option-type as a passthru attr breaks the
ability to build specific test entries, since they are no longer
`type = "derivation"`.
This commit is contained in:
Matt Sturgeon 2025-04-01 20:32:33 +01:00
parent 5a491f4b2b
commit 754b8df7e3
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -37,9 +37,13 @@ let
configuration.config.build.test.overrideAttrs (old: { configuration.config.build.test.overrideAttrs (old: {
passthru = passthru =
old.passthru or { } old.passthru or { }
// builtins.removeAttrs configuration [ "_type" ] // builtins.removeAttrs configuration [
"_type"
"type"
]
// { // {
inherit file module; inherit file module;
optionType = configuration.type;
}; };
}); });