From ae77e2fb78dcb3d1545fd0c3437d5bcafe310839 Mon Sep 17 00:00:00 2001 From: talyz Date: Wed, 22 Dec 2021 14:30:05 +0100 Subject: [PATCH] discourse: Forward the used system and pkgs attributes to the tests The system attribute is otherwise deduced from the system the evaluation runs on, which could be incorrect if using remote builders. --- pkgs/servers/web-apps/discourse/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/web-apps/discourse/default.nix b/pkgs/servers/web-apps/discourse/default.nix index 9a04bf479913..0d457debc147 100644 --- a/pkgs/servers/web-apps/discourse/default.nix +++ b/pkgs/servers/web-apps/discourse/default.nix @@ -313,7 +313,11 @@ let enabledPlugins = plugins; plugins = callPackage ./plugins/all-plugins.nix { inherit mkDiscoursePlugin; }; ruby = rubyEnv.wrappedRuby; - tests = import ../../../../nixos/tests/discourse.nix { package = pkgs.discourse.override args; }; + tests = import ../../../../nixos/tests/discourse.nix { + inherit (stdenv) system; + inherit pkgs; + package = pkgs.discourse.override args; + }; }; }; in discourse