Commit Graph
10 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 6b309be9a6 src-cli: 5.4.0 -> 5.5.0 2024-08-03 02:48:27 +00:00
R. Ryantm 2c67e7871a src-cli: 5.3.0 -> 5.4.0 2024-05-16 02:48:16 +00:00
R. Ryantm f160ed30f0 src-cli: 5.2.1 -> 5.3.0 2024-02-14 04:46:00 +00:00
figsoda 25514bbc7d src-cli: 5.2.0 -> 5.2.1
Diff: https://github.com/sourcegraph/src-cli/compare/5.2.0...5.2.1

Changelog: https://github.com/sourcegraph/src-cli/blob/5.2.1/CHANGELOG.md
2023-11-28 20:25:18 -05:00
figsoda 13da5616f0 src-cli: 5.1.2 -> 5.2.0
Diff: https://github.com/sourcegraph/src-cli/compare/5.1.2...5.2.0

Changelog: https://github.com/sourcegraph/src-cli/blob/5.2.0/CHANGELOG.md
2023-10-02 17:16:59 -04:00
figsoda 571813f30b src-cli: 5.1.1 -> 5.1.2
Diff: https://github.com/sourcegraph/src-cli/compare/5.1.1...5.1.2

Changelog: https://github.com/sourcegraph/src-cli/blob/5.1.2/CHANGELOG.md
2023-08-24 12:22:39 -04:00
figsoda 6fd0c4fd23 src-cli: 5.1.0 -> 5.1.1
Diff: https://github.com/sourcegraph/src-cli/compare/5.1.0...5.1.1

Changelog: https://github.com/sourcegraph/src-cli/blob/5.1.1/CHANGELOG.md
2023-08-11 15:37:34 -04:00
figsoda aae6b38b21 src-cli: 5.0.3 -> 5.1.0
Diff: https://github.com/sourcegraph/src-cli/compare/5.0.3...5.1.0

Changelog: https://github.com/sourcegraph/src-cli/blob/5.1.0/CHANGELOG.md
2023-06-21 16:33:46 -04:00
figsoda 62441a9316 src-cli: init at 5.0.3
https://github.com/sourcegraph/src-cli
2023-06-21 11:53:43 -04:00