Commit Graph

12 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
R. Ryantm
b7e0e296fd werf: 2.10.5 -> 2.10.6 2024-09-17 23:35:50 +00:00
R. Ryantm
5860c5d9d9 werf: 2.10.4 -> 2.10.5 2024-08-30 23:13:50 +00:00
R. Ryantm
a587460526 werf: 2.10.3 -> 2.10.4 2024-08-25 08:59:33 +00:00
R. Ryantm
65ea17f1a8 werf: 2.10.1 -> 2.10.3 2024-08-18 11:49:44 +00:00
R. Ryantm
473870e64a werf: 2.9.3 -> 2.10.1 2024-08-11 07:41:56 +00:00
R. Ryantm
0e33ef9a30 werf: 2.8.0 -> 2.9.3 2024-08-02 10:37:42 +00:00
R. Ryantm
800c28f627 werf: 2.6.7 -> 2.8.0 2024-07-21 00:35:36 +00:00
R. Ryantm
8697be65ae werf: 2.6.4 -> 2.6.7 2024-07-08 09:58:44 +00:00
R. Ryantm
6f76e25c04 werf: 2.6.2 -> 2.6.4 2024-07-01 08:53:48 +00:00
R. Ryantm
0a810aaaaf werf: 2.6.1 -> 2.6.2 2024-06-25 16:32:00 +00:00
Azat Bahawi
a2aafdf35a
werf: 2.5.0 -> 2.6.1 2024-06-18 19:06:05 +03:00