mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
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" ``` |
||
---|---|---|
.. | ||
4.00.1.nix | ||
4.01.0.nix | ||
4.02.nix | ||
4.03.nix | ||
4.04.nix | ||
4.05.nix | ||
4.06.nix | ||
4.07.nix | ||
4.08.nix | ||
4.09.1-Werror.patch | ||
4.09.nix | ||
4.10.nix | ||
4.11.nix | ||
4.12.nix | ||
4.13.nix | ||
4.14.nix | ||
5.0.nix | ||
5.1.nix | ||
5.2.nix | ||
ber-metaocaml.nix | ||
fix-clang-build-on-osx.diff | ||
generic.nix | ||
glibc-2.34-for-ocaml-4.10-and-11.patch | ||
Makefile.nixpkgs | ||
ocamlbuild.patch |