From ad175bca297c97d5ccd7f5375830c1931c4b7838 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Tue, 25 Mar 2025 12:15:37 +0000 Subject: [PATCH] nixos/nextcloud: fix eval of tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently failing with error: cannot coerce a set to a string: { __functionArgs = «thunk»; __functor = «thunk»; } This comes from the `extraTests` option I added to the test modules to compose certain tests a little nicer. It's of type either (functionTo ...) str and it seems like the `functionTo` part now returns a functor (i.e. an attr-set that can be invoked as function). This is caught by `lib.isFunction`, but `builtins.isFunction` returns `false`. Hence, switching to the former fixes this. --- nixos/tests/nextcloud/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/nextcloud/default.nix b/nixos/tests/nextcloud/default.nix index af5f4cd5fed9..fa5126610c7e 100644 --- a/nixos/tests/nextcloud/default.nix +++ b/nixos/tests/nextcloud/default.nix @@ -80,7 +80,7 @@ let "${test-helpers.rclone} ${test-helpers.check-sample}" ) - ${if builtins.isFunction test-helpers.extraTests then test-helpers.extraTests args else test-helpers.extraTests} + ${if pkgs.lib.isFunction test-helpers.extraTests then test-helpers.extraTests args else test-helpers.extraTests} ''; };