e0464e4788
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" ``` |
||
---|---|---|
.. | ||
adapta-backgrounds | ||
brise | ||
cacert | ||
clash-geoip | ||
cldr-annotations | ||
colemak-dh | ||
combinatorial_designs | ||
common-licenses | ||
dbip-country-lite | ||
ddccontrol-db | ||
dns-root-data | ||
elliptic_curves | ||
fedora-backgrounds | ||
freepats | ||
geolite-legacy | ||
graphs | ||
hackage | ||
iana-etc | ||
libkkc-data | ||
mailcap | ||
media-player-info | ||
miscfiles | ||
mobile-broadband-provider-info | ||
nixos-artwork | ||
osinfo-db | ||
papirus-folders | ||
pari-galdata | ||
pari-seadata-small | ||
polytopes_db | ||
poppler-data | ||
publicsuffix-list | ||
rime-data | ||
scowl | ||
shared-desktop-ontologies | ||
shared-mime-info | ||
sing-geoip | ||
sing-geosite | ||
sound-theme-freedesktop | ||
spdx-license-list-data | ||
tzdata | ||
unicode-character-database | ||
unicode-emoji | ||
unihan-database | ||
v2ray-domain-list-community | ||
v2ray-geoip | ||
wireless-regdb | ||
xorg-rgb |