From 754b8df7e37be04b7438decee5a5aa18af72cbe1 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Tue, 1 Apr 2025 20:32:33 +0100 Subject: [PATCH] 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"`. --- tests/main.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/main.nix b/tests/main.nix index 56ad65d4..cce017aa 100644 --- a/tests/main.nix +++ b/tests/main.nix @@ -37,9 +37,13 @@ let configuration.config.build.test.overrideAttrs (old: { passthru = old.passthru or { } - // builtins.removeAttrs configuration [ "_type" ] + // builtins.removeAttrs configuration [ + "_type" + "type" + ] // { inherit file module; + optionType = configuration.type; }; });