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
aleksana
592e3845c4 treewide: sha256 -> hash attribute for fetchgit 2024-07-14 19:10:08 +08:00
R. Ryantm
c0bc142aed oxigraph: 0.3.21 -> 0.3.22 2023-12-17 13:31:58 +00:00
R. Ryantm
da2543fef4 oxigraph: 0.3.20 -> 0.3.21 2023-12-01 21:15:38 +00:00
h7x4
12315f53ff treewide: add mainProgram 2023-11-24 21:01:03 +01:00
R. Ryantm
ea84f3fdd6 oxigraph: 0.3.19 -> 0.3.20 2023-10-24 19:04:21 +00:00
R. Ryantm
4df050001e oxigraph: 0.3.18 -> 0.3.19 2023-08-24 17:42:39 +00:00
R. Ryantm
0cb94b27cc oxigraph: 0.3.17 -> 0.3.18 2023-06-24 00:36:48 +00:00
R. Ryantm
e640c091d6 oxigraph: 0.3.16 -> 0.3.17 2023-06-12 22:00:44 +00:00
R. Ryantm
dbfe3ff44d oxigraph: 0.3.14 -> 0.3.16 2023-05-06 09:27:55 +00:00
R. Ryantm
731f904a5a oxigraph: 0.3.13 -> 0.3.14 2023-03-24 22:01:12 +00:00
R. Ryantm
0693400844 oxigraph: 0.3.11 -> 0.3.13 2023-03-01 15:23:53 +00:00
Astro
1fe9b60df9 oxigraph: init at 0.3.11 2023-02-23 00:41:02 +01:00