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
R. Ryantm
dd8ed47b99 cfspeedtest: 1.2.5 -> 1.2.6 2024-08-29 12:29:22 +00:00
R. Ryantm
d7d910f066 cfspeedtest: 1.2.4 -> 1.2.5 2024-07-16 15:18:23 +00:00
R. Ryantm
d249d477da cfspeedtest: 1.2.3 -> 1.2.4 2024-05-24 00:36:51 +00:00
R. Ryantm
3c957b3432 cfspeedtest: 1.2.2 -> 1.2.3 2024-03-20 23:07:42 +00:00
R. Ryantm
9930877757 cfspeedtest: 1.2.1 -> 1.2.2 2024-03-07 01:22:58 +00:00
h7x4
8121f3559a
treewide: add mainProgram 2024-02-11 03:19:15 +01:00
R. Ryantm
3e3726a2d4 cfspeedtest: 1.2.0 -> 1.2.1 2024-02-05 04:16:49 +00:00
R. Ryantm
2d896ec0f2 cfspeedtest: 1.1.3 -> 1.2.0 2023-12-27 00:31:17 +00:00
R. Ryantm
2de4781784 cfspeedtest: 1.1.2 -> 1.1.3 2023-10-22 13:41:24 +00:00
Cole Mickens
a03690056a
cfspeedtest: init at 1.1.2 2023-09-19 19:18:31 +02:00