Commit Graph

8 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
f1ec53fee2 gptscript: 0.9.2 -> 0.9.4 2024-08-11 06:48:50 +00:00
R. Ryantm
7175168e15 gptscript: 0.8.2 -> 0.9.2 2024-07-20 21:39:42 +00:00
Kirill Radzikhovskyy
72d80158fa gptscript: unpin buidGoModule 2024-07-10 11:01:27 +10:00
h7x4
7384b9abdc
treewide: set meta.changelog 2024-07-07 15:20:06 +02:00
Redyf
3e47033d14 gptscript: 0.5.0 -> 0.8.2 2024-06-18 22:08:27 -03:00
Jamie Magee
842f75a629
gptscript: 0.1.1 -> 0.5.0 (#305899) 2024-05-02 13:49:46 +00:00
Jamie Magee
a725d72ca6 pkgs.gptscript: init at 0.1.1 2024-02-19 20:12:51 -08:00