Commit Graph

11 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
uncenter
c497bbd6b0
jnv: format with nixfmt-rfc-style 2024-08-15 13:10:40 +02:00
uncenter
59fe871ed7
jnv: fix darwin build 2024-08-15 13:04:35 +02:00
R. Ryantm
e166ab0a75 jnv: 0.3.0 -> 0.4.0 2024-08-13 14:47:43 +00:00
Ilan Joselevich
251b389efa
jnv: remove no longer needed dependencies 2024-06-04 19:34:32 +03:00
R. Ryantm
59a83970bb jnv: 0.2.3 -> 0.3.0 2024-06-02 13:11:42 +00:00
R. Ryantm
32f8f2dfd9 jnv: 0.2.2 -> 0.2.3 2024-05-26 13:11:47 +00:00
R. Ryantm
c6439dcf9a jnv: 0.2.1 -> 0.2.2 2024-04-21 13:08:35 +00:00
R. Ryantm
3074b3f4f2 jnv: 0.1.3 -> 0.2.1 2024-04-02 07:04:14 +00:00
R. Ryantm
661cb5e80d jnv: 0.1.2 -> 0.1.3 2024-03-24 13:27:30 +00:00
Neal Fennimore
623abc9470
jnv: init at 0.1.2
Co-authored-by: nshalman <nahamu@gmail.com>
2024-03-21 14:14:06 -04:00