nixpkgs/pkgs/development/haskell-modules
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
..
configuration-hackage2nix haskellPackages.sdl2: work around argv limit 2024-09-01 13:21:09 +02:00
lib aeson: remove with statements 2024-08-18 06:31:15 -07:00
patches haskellPackages.opencv{,-extra}: remove overrides 2024-08-22 15:05:38 +01:00
cabal2nix-unstable.nix
configuration-arm.nix
configuration-common.nix treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
configuration-darwin.nix treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
configuration-ghc-8.6.x.nix
configuration-ghc-8.10.x.nix
configuration-ghc-9.0.x.nix
configuration-ghc-9.2.x.nix haskell.packages.ghc92.haskell-language-server: Fix build by disabling plugins 2024-08-19 23:30:45 +02:00
configuration-ghc-9.4.x.nix
configuration-ghc-9.6.x.nix haskellPackages.kqueue: apply patch for GHC 9.6 core libs 2024-09-01 16:21:51 +02:00
configuration-ghc-9.8.x.nix
configuration-ghc-9.10.x.nix haskell.packages.ghc910.haskell-language-server: fix package 2024-08-29 08:43:20 -03:00
configuration-ghc-9.12.x.nix
configuration-ghcjs-8.x.nix
configuration-ghcjs-9.x.nix haskellPackages.entropy: build with js backend 2024-08-21 01:10:59 +01:00
configuration-nix.nix treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
configuration-tensorflow.nix
default.nix
generic-builder.nix treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
generic-stack-builder.nix
hackage-packages.nix haskellPackages.sdl2: work around argv limit 2024-09-01 13:21:09 +02:00
HACKING.md
hoogle-local-wrapper.sh
hoogle.nix
initial-packages.nix
make-package-set.nix
non-hackage-packages.nix
package-list.nix
stack-hook.sh
with-packages-wrapper.nix