Commit Graph

18 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
0bddd325ff krapslog: 0.5.4 -> 0.6.0 2024-05-29 13:17:34 +00:00
h7x4
41974d5ed9
treewide: add mainProgram 2023-11-27 02:17:53 +01:00
R. Ryantm
e46a2ef08f krapslog: 0.5.3 -> 0.5.4 2023-11-07 07:52:50 +00:00
R. Ryantm
3821c10b82 krapslog: 0.5.2 -> 0.5.3 2023-08-11 06:54:21 +00:00
R. Ryantm
f8b58b3236 krapslog: 0.5.1 -> 0.5.2 2023-06-18 06:02:04 +00:00
R. Ryantm
d4839f0c97 krapslog: 0.5.0 -> 0.5.1 2023-04-14 03:26:54 +00:00
R. Ryantm
5a12c45a4d krapslog: 0.4.2 -> 0.5.0 2023-02-05 02:35:15 +00:00
R. Ryantm
3ae69bbba0 krapslog: 0.4.1 -> 0.4.2 2022-11-19 07:17:10 +00:00
R. Ryantm
d7c17f1721 krapslog: 0.4.0 -> 0.4.1 2022-09-21 21:12:40 +00:00
R. Ryantm
b69e359d84 krapslog: 0.3.2 -> 0.4.0 2022-02-18 12:50:09 +00:00
R. Ryantm
fa3b88d430 krapslog: 0.3.1 -> 0.3.2 2022-02-12 20:22:42 -08:00
R. RyanTM
6ececace95
krapslog: 0.3.0 -> 0.3.1
(#153258)
2022-01-07 16:12:40 +01:00
R. RyanTM
5e5930ef16 krapslog: 0.2.0 -> 0.3.0 2021-07-12 23:10:06 +00:00
R. RyanTM
19b20ae7b2 krapslog: 0.1.3 -> 0.2.0 2021-06-01 12:37:00 +00:00
Stéphan Kochen
a5bff380e6 krapslog: fix darwin build 2021-05-16 14:34:50 -07:00
R. RyanTM
3ceb0e9cfa krapslog: 0.1.2 -> 0.1.3 2021-04-30 15:55:57 +00:00
Antonio Yang
39f824d1d6 krapslog: init at 0.1.2 2021-02-20 21:38:58 +08:00