Commit Graph

8 Commits

Author SHA1 Message Date
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
Andreas Bielawski
a14c557f66
tlrc: fix build on darwin 2024-08-04 13:59:22 +02:00
Lena
f31b0cf680
tlrc: 1.9.2 -> 1.9.3 2024-07-29 15:35:31 +02:00
Lena
783927ab4a
tlrc: 1.9.1 -> 1.9.2 2024-04-29 17:20:11 +02:00
Lena
23cb504fe0
tlrc: 1.9.0 -> 1.9.1 2024-03-28 21:47:17 +01:00
Lena
5cf15d4f4d
tlrc: 1.8.0 -> 1.9.0 2024-03-24 13:46:08 +01:00
Lena
44c2bd88f4
tlrc: 1.7.1 -> 1.8.0 2023-11-30 21:04:25 +01:00
Lena
882f864a0a
tlrc: init at 1.7.1 2023-11-14 18:19:32 +01:00