Commit Graph

8 Commits

Author SHA1 Message Date
R. Ryantm
921a21a26f cpuinfo: 0-unstable-2024-09-11 -> 0-unstable-2024-09-26 2024-09-29 10:10:04 +00:00
Weijia Wang
791c4b0a49
cpuinfo: 0-unstable-2024-08-30 -> 0-unstable-2024-09-11 (#342977) 2024-09-27 00:14:17 +02:00
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
e63faf8198 cpuinfo: 0-unstable-2024-08-30 -> 0-unstable-2024-09-11 2024-09-19 07:19:35 +00:00
R. Ryantm
f60009030c cpuinfo: 0-unstable-2024-08-07 -> 0-unstable-2024-08-30 2024-08-31 18:57:56 +00:00
R. Ryantm
c2777eb9f4 cpuinfo: 0-unstable-2024-07-10 -> 0-unstable-2024-08-07 2024-08-12 01:56:02 +00:00
R. Ryantm
7f30c01c65 cpuinfo: 0-unstable-2024-06-02 -> 0-unstable-2024-07-10 2024-07-12 01:09:55 +00:00
Pawel Chojnacki
5e414b8800 cpuinfo: init at 0-unstable-2024-06-02 2024-07-11 00:18:56 +02:00