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
30afe6ea5c ccache: 4.10.1 -> 4.10.2 2024-07-23 06:23:33 +00:00
Kira Bruneau
81d33312aa ccache: 4.10 -> 4.10.1 2024-07-01 23:39:17 -04:00
Robert Schütz
898be2ef0f ccache: make src reproducible 2024-06-02 08:13:54 -07:00
Nano Twerpus
d148e5a6da ccache: format with nixfmt-rfc-style 2024-05-31 08:55:19 -04:00
Nano Twerpus
2944aeb2c6 ccache: 4.9.1 -> 4.10
Dependencies now necessary to compile `ccache` added: `doctest`, `fmt`, `hiredis`, `xxHash`.
2024-05-31 08:54:11 -04:00
R. Ryantm
ae8007359e ccache: 4.9 -> 4.9.1 2024-02-09 12:01:03 +00:00
Emery Hemingway
1bbad171d0 ccache: move to pkgs/by-name 2024-02-09 12:00:40 +00:00