Commit Graph

15 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
42519bf8d4 swego: 1.1 -> 1.12 2024-06-13 15:18:24 +00:00
Fabian Affolter
51c39ac7ac swego: format with nixfmt 2024-05-23 12:01:46 +02:00
Fabian Affolter
dc0118692a swego: refactor 2024-05-23 12:01:31 +02:00
R. Ryantm
a7094f7697 swego: 1.0 -> 1.1 2024-05-23 06:07:37 +00:00
h7x4
12315f53ff treewide: add mainProgram 2023-11-24 21:01:03 +01:00
R. Ryantm
e995af584a swego: 0.98 -> 1.0 2023-09-13 06:13:23 +00:00
R. Ryantm
ba57683511 swego: 0.97 -> 0.98 2022-02-22 16:32:59 +00:00
R. RyanTM
43af21f67c swego: 0.94 -> 0.97 2021-08-23 04:36:01 +00:00
R. RyanTM
4cab1eb3bc swego: 0.93 -> 0.94 2021-03-27 22:09:49 +00:00
R. RyanTM
6b5f49ae36 swego: 0.92 -> 0.93 2021-03-19 22:44:23 -04:00
R. RyanTM
2f62082acf swego: 0.91 -> 0.92 2021-02-25 17:29:03 +00:00
R. RyanTM
13752db222 swego: 0.9 -> 0.91 2021-02-21 05:12:30 +00:00
R. RyanTM
6989e911bc swego: 0.7 -> 0.9 2021-02-06 20:48:30 +00:00
Fabian Affolter
5c7e19604e
swego: init at 0.7 (#108106)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-01-24 16:27:17 +01:00