nixpkgs/lib/tests
Artturin e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
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"
```
2024-09-25 00:04:37 +03:00
..
modules lib.types.anything: remove custom logic for lists (#340202) 2024-09-18 17:08:15 +02:00
packages-from-directory lib/tests/packages-from-directory: make sure all .nix files parse 2024-01-31 20:30:17 +01:00
check-eval.nix
fetchers.nix lib.fetchers: add tests 2024-09-17 10:51:48 +00:00
filesystem.sh lib.filesystem: Don't test Nix-specific error messages 2023-11-01 18:56:03 +01:00
maintainer-module.nix maintainers: make email optional 2023-01-27 18:04:20 +01:00
maintainers.nix maintainers: clarify what fields are required 2023-01-27 18:05:28 +01:00
misc.nix lib.toExtension: init 2024-09-14 20:56:47 +08:00
modules.sh lib.types.anything: remove custom logic for lists (#340202) 2024-09-18 17:08:15 +02:00
network.sh lib.network: ipv6 parser from string 2024-06-29 10:02:00 +03:00
nix-for-tests.nix lib.tests: build nix without flaky aws-sdk-cpp 2023-11-18 20:19:10 -08:00
release.nix lib/tests/release.nix: fix pkgs.lib error by passing lib 2024-06-09 18:12:39 -07:00
sources.sh lib/tests: Unify documentation of individual testable files 2023-07-18 17:22:45 +02:00
systems.nix treewide: freebsd13 -> freebsd 2024-04-30 18:20:23 -04:00
teams.nix maintainer teams: check them in lib tests 2022-06-20 22:20:26 +02:00
test-to-plist-expected.plist lib.toPlist: keep test output in external files for their tab indents 2023-03-27 19:25:52 +02:00
test-with-nix.nix treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00