Commit Graph

9 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
aleksana
a9709c299b treewide: change cargoSha256 with SRI hash to cargoHash 2024-07-03 21:53:11 +08:00
h7x4
b8054ecd8a treewide: add mainProgram 2023-11-23 21:04:16 +01:00
R. Ryantm
ceccd800a5 lethe: 0.8.0 -> 0.8.2 2022-09-27 14:52:19 +00:00
R. Ryantm
2adc1155c9 lethe: 0.7.0 -> 0.8.0 2022-09-26 18:55:37 +00:00
R. Ryantm
56316788f5 lethe: 0.6.1 -> 0.7.0 2022-07-28 19:52:17 +00:00
R. Ryantm
969cb864c9 lethe: 0.6.0 -> 0.6.1 2021-12-07 09:48:42 +00:00
R. RyanTM
e6ba34f6e6 lethe: 0.5.1 -> 0.6.0 2021-08-15 07:57:05 +00:00
Fabian Affolter
ddc83acfa0 lethe: init at 0.5.1 2021-06-26 23:26:49 +02:00