mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 05:00:19 +00:00
![]() 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" ``` |
||
---|---|---|
.. | ||
adv_cmds | ||
architecture | ||
AvailabilityVersions | ||
basic_cmds | ||
bootstrap_cmds | ||
bsdmake | ||
CarbonHeaders | ||
CommonCrypto | ||
configd | ||
copyfile | ||
Csu | ||
developer_cmds | ||
diskdev_cmds | ||
dtrace | ||
dyld | ||
eap8021x | ||
file_cmds | ||
hfs | ||
ICU | ||
IOKit | ||
launchd | ||
Libc | ||
libclosure | ||
libdispatch | ||
Libinfo | ||
Libm | ||
libmalloc | ||
Libnotify | ||
libplatform | ||
libpthread | ||
libresolv | ||
Librpcsvc | ||
Libsystem | ||
libunwind | ||
libutil | ||
mDNSResponder | ||
network_cmds | ||
objc4 | ||
PowerManagement | ||
ppp | ||
removefile | ||
Security | ||
shell_cmds | ||
system_cmds | ||
text_cmds | ||
top | ||
xnu | ||
default.nix | ||
developer-tools-11.3.1.nix | ||
generate-sdk-packages.sh | ||
macos-11.0.1.nix |