Commit Graph

8 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
ec9cf7a478 serie: 0.3.0 -> 0.4.0 2024-09-18 10:30:41 +00:00
R. Ryantm
5828cef58b serie: 0.2.0 -> 0.3.0 2024-09-07 11:59:48 +00:00
R. Ryantm
560dd7cd9c serie: 0.1.2 -> 0.2.0 2024-08-31 05:15:56 +00:00
Jermeiah S
941d89514c
serie: fixed rust check failures, added version test 2024-08-03 22:48:43 -04:00
R. Ryantm
16b90c0d76 serie: 0.1.1 -> 0.1.2 2024-08-02 16:06:46 +00:00
Matthias Beyer
948120925e
serie: 0.1.0 -> 0.1.1
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-07-30 08:12:47 +02:00
Matthias Beyer
4ac9a94b6e
serie: init at 0.1.0
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-07-30 08:09:41 +02:00