In preparation for the deprecation of `stdenv.isX`.
These shorthands are not conducive to cross-compilation because they
hide the platforms.
Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way
One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059
There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.
```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
disable checks for werkzeug where one test started to fail recently.
An update of werkzeug inside octoprint isn't possible (yet), so disable
the tests.
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
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