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
a890170ea4 crunchy-cli: 3.6.6 -> 3.6.7 2024-06-25 16:58:47 +00:00
R. Ryantm
629ad8cfea crunchy-cli: 3.6.4 -> 3.6.6 2024-05-28 18:44:51 +00:00
R. Ryantm
9f67f1edc2 crunchy-cli: 3.6.2 -> 3.6.4 2024-05-22 04:45:52 +00:00
R. Ryantm
77c4ec3c6f crunchy-cli: 3.6.1 -> 3.6.2 2024-05-18 03:14:50 +00:00
R. Ryantm
be87d02b00 crunchy-cli: 3.5.2 -> 3.6.1 2024-05-11 21:46:26 +00:00
R. Ryantm
e04ae257c3 crunchy-cli: 3.5.0 -> 3.5.2 2024-04-27 04:45:50 +00:00
R. Ryantm
04b2ca300b crunchy-cli: 3.4.3 -> 3.5.0 2024-04-21 22:51:30 +00:00
R. Ryantm
0e9b76dfa2 crunchy-cli: 3.3.4 -> 3.4.3 2024-04-15 09:09:38 +00:00
R. Ryantm
a5ce721181 crunchy-cli: 3.3.1 -> 3.3.4 2024-04-05 05:11:38 +00:00
Yifei Sun
908f72458a
crunchy-cli: 3.2.5 -> 3.3.1 2024-03-17 12:35:48 -04:00
Mario Rodas
77acdf56b6 crunchy-cli: migrate to by-name 2024-02-14 04:20:00 +00:00