2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-17 10:24:07 +00:00
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
ce220c2230 bore-cli: 0.5.0 -> 0.5.1 2024-06-11 02:48:11 +00:00
R. Ryantm
3f98af3309 bore-cli: 0.4.1 -> 0.5.0 2023-04-30 13:09:06 +00:00
R. Ryantm
03f59d7fa8 bore-cli: 0.4.0 -> 0.4.1 2022-11-20 11:48:54 +08:00
Artturin
7e49471316 treewide: optional -> optionals where the argument is a list
the argument to optional should not be list
2022-10-10 15:40:21 +03:00
Fabian Affolter
fe2be5eec2 bore-cli: 0.2.3 -> 0.4.0 2022-05-02 19:20:11 +02:00
R. Ryantm
f768ad5a9e bore-cli: 0.2.1 -> 0.2.3 2022-04-22 07:44:30 -04:00
Justin Restivo
569f8c87c0 bore-cli: init at 0.2.1 2022-04-13 20:57:52 -04:00