Commit Graph

8 Commits

Author SHA1 Message Date
R. Ryantm
a46bd85b09 railway: 3.14.1 -> 3.15.1 2024-10-01 19:04:05 +00:00
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
5ecbbed1ce railway: 3.14.0 -> 3.14.1 2024-09-23 18:18:43 +00:00
R. Ryantm
9f4db6cbf8 railway: 3.13.0 -> 3.14.0 2024-09-13 21:09:33 +00:00
R. Ryantm
b706033252 railway: 3.12.2 -> 3.13.0 2024-08-27 00:30:51 +00:00
R. Ryantm
d54a0c3fe9 railway: 3.11.4 -> 3.12.2 2024-08-17 18:04:20 +00:00
R. Ryantm
61e746fbe1 railway: 3.11.2 -> 3.11.4 2024-08-10 13:15:35 +00:00
techknowlogick
9246489a8a railway: move to pkgs/by-name 2024-08-03 00:29:12 -04:00