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
This commit is contained in:
Sergei Trofimovich 2023-12-30 12:19:09 +00:00
parent 01962add7e
commit d7e85937ee

View File

@ -480,5 +480,5 @@ in
};
};
} // lib.optionalAttrs config.allowAliases {
octoprint-dashboard = self.dashboard;
octoprint-dashboard = super.dashboard;
}