Skip to content

Commit 754b8df

Browse files
committed
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"`.
1 parent 5a491f4 commit 754b8df

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/main.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,13 @@ let
3737
configuration.config.build.test.overrideAttrs (old: {
3838
passthru =
3939
old.passthru or { }
40-
// builtins.removeAttrs configuration [ "_type" ]
40+
// builtins.removeAttrs configuration [
41+
"_type"
42+
"type"
43+
]
4144
// {
4245
inherit file module;
46+
optionType = configuration.type;
4347
};
4448
});
4549

0 commit comments

Comments
 (0)