Commit Graph

19 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
778d506a69 docfd: 8.0.2 -> 8.0.3 2024-09-19 08:16:31 +00:00
R. Ryantm
91466cae59 docfd: 8.0.1 -> 8.0.2 2024-09-08 03:47:38 +00:00
lassulus
6d973e42d9
docfd: 7.0.0 -> 8.0.1 (#337919) 2024-09-01 10:04:21 +02:00
Vincent Laporte
43b6851327 docfd: remove spurrious dependency on domainslib 2024-08-30 13:55:37 +02:00
John Garcia
e049c50c2d docfd: 7.0.0 -> 8.0.1 2024-08-28 16:08:58 +01:00
R. Ryantm
8215304782 docfd: 6.0.1 -> 7.0.0 2024-06-19 08:42:01 +00:00
R. Ryantm
fbc0d59d6b docfd: 6.0.0 -> 6.0.1 2024-05-13 21:08:10 +00:00
chewblacka
00363566e3
docfd: 5.1.0 -> 6.0.0 (#311043) 2024-05-12 21:48:17 +00:00
John Garcia
9ad995c04e docfd: 4.0.0 -> 5.1.0 2024-05-05 12:36:07 +01:00
John Garcia
254ed1ad03 docfd: format with nixfmt 2024-05-05 11:19:04 +01:00
John Garcia
e58213f7d6 docfd: fix for darwin x86_64 2024-04-05 22:36:41 +01:00
John Garcia
cfbb643b7d docfd: 3.0.0 -> 4.0.0 2024-04-05 17:41:55 +01:00
John Garcia
dee679f466 docfd: add passthru test 2024-04-03 12:42:28 +01:00
John Garcia
b97d69453b docfd: 2.2.0 -> 3.0.0 2024-03-12 19:40:55 +00:00
R. Ryantm
4a50c60a85 docfd: 2.1.0 -> 2.2.0 2024-02-16 01:45:49 +00:00
John Garcia
7786bf7565 docfd: change long description 2024-02-11 16:42:59 +00:00
John Garcia
8afc781161 docfd: add fzf support 2024-02-11 16:40:31 +00:00
John Garcia
f7b31dd5a4 docfd: init at 2.1.0 2024-01-30 22:06:17 +01:00