Commit Graph

13 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
691fd881fb nrr: 0.9.4 -> 0.9.5 2024-08-26 07:22:01 +00:00
Ryan Cao
cffc27daf0
nrr: format with nixfmt-rfc-style 2024-08-18 18:09:04 +08:00
Ryan Cao
1460e06773
nrr: add meta.homepage 2024-08-18 18:08:44 +08:00
Ryan Cao
a186a7c2c5
nrr: enable LTO by default 2024-08-18 18:08:44 +08:00
R. Ryantm
5dc2c92774 nrr: 0.9.3 -> 0.9.4 2024-07-27 07:40:17 +00:00
R. Ryantm
36e4bfa3e0 nrr: 0.9.2 -> 0.9.3 2024-06-25 16:14:12 +00:00
R. Ryantm
20fbc35459 nrr: 0.9.1 -> 0.9.2 2024-05-31 02:03:45 +00:00
R. Ryantm
0be93cafb7 nrr: 0.9.0 -> 0.9.1 2024-05-11 14:36:53 +00:00
Ryan Cao
922ff9ac83
nrr: 0.8.0 -> 0.9.0 2024-04-19 10:52:06 +08:00
Ryan Cao
a4850157ee
nrr: 0.5.2 -> 0.8.0 2024-02-24 10:23:20 +08:00
Ryan Cao
c5194c77dd
nrr: 0.5.0 -> 0.5.2 2024-02-14 08:14:49 +08:00
Ryan Cao
8d163530bd
nrr: init at 0.5.0 2024-01-26 18:37:12 +08:00