From d7e85937ee89edcb56ad9b713d733adaa9e6b586 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 30 Dec 2023 12:19:09 +0000 Subject: [PATCH] octoprint: fix `octoprint-dashboard` alias definition Without the change `tests` eval fails to discover `dashboard` as it's used before it's definition in the same overlay. The eval failed as: $ nix build --no-link -f. octoprint.tests.plugins.octoprint-dashboard error: attribute 'dashboard' missing 482| } // lib.optionalAttrs config.allowAliases { 483| octoprint-dashboard = self.dashboard; | ^ 484| } After the change the eval succeeds as: $ nix-instantiate -A octoprint.tests.plugins.dashboard /nix/store/gxzicbfnpfgvs2qnpdn22aica4vlncns-python3.11-octoprint-plugin-dashboard-1.18.3.drv --- pkgs/applications/misc/octoprint/plugins.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/misc/octoprint/plugins.nix b/pkgs/applications/misc/octoprint/plugins.nix index b80bf1c09569..6effd4b50ec3 100644 --- a/pkgs/applications/misc/octoprint/plugins.nix +++ b/pkgs/applications/misc/octoprint/plugins.nix @@ -480,5 +480,5 @@ in }; }; } // lib.optionalAttrs config.allowAliases { - octoprint-dashboard = self.dashboard; + octoprint-dashboard = super.dashboard; }