Commit Graph

13 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
Alyssa Ross
598d6c9fd9 pkg: 1.21.2 -> 1.21.3 2024-05-30 09:36:18 +02:00
Alyssa Ross
58d369dbaa
pkg: 1.21.0 -> 1.21.2 2024-04-28 20:10:09 +02:00
Alyssa Ross
851750e5da
pkg: 1.20.8 -> 1.21.0 2024-04-02 16:09:40 +02:00
h7x4
41974d5ed9
treewide: add mainProgram 2023-11-27 02:17:53 +01:00
R. Ryantm
43140284dd pkg: 1.20.7 -> 1.20.8 2023-10-12 18:46:39 +00:00
R. Ryantm
fbba24df23 pkg: 1.20.5 -> 1.20.7 2023-09-25 06:28:34 +00:00
R. Ryantm
fbb3f82866 pkg: 1.20.4 -> 1.20.5 2023-08-12 16:39:22 +00:00
R. Ryantm
3107091aa4 pkg: 1.19.1 -> 1.20.4 2023-07-17 14:37:51 +00:00
Alyssa Ross
2dbdc56a46
pkg: don't use vendored libelf 2023-04-08 16:00:41 +00:00
Alyssa Ross
84077e13db
pkg: 1.19.0 -> 1.19.1 2023-04-08 16:00:23 +00:00
Martin Weinelt
ad43c018d9
pkg: Use xz directly, not via lzma alias 2023-03-14 21:38:10 +01:00
Alyssa Ross
e32aef5aca
pkg: init at 1.19.0 2023-01-14 19:33:38 +00:00