mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
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:
parent
5a491f4b2b
commit
754b8df7e3
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue