Commit Graph

6 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
Malo Bourgon
8feccc5533 inshellisense: 0.0.1-rc.15 -> 0.0.1-rc.16
Diff: https://github.com/microsoft/inshellisense/compare/refs/tags/0.0.1-rc.15...0.0.1-rc.16
2024-08-29 11:03:40 -07:00
Malo Bourgon
e52b3b8bf4 inshellisense: 0.0.1-rc.14 -> 0.0.1-rc.15
Diff: https://github.com/microsoft/inshellisense/compare/refs/tags/0.0.1-rc.14...0.0.1-rc.15
2024-05-02 15:53:19 -07:00
Malo Bourgon
d90d1b703c inshellisense: 0.0.1-rc.12 -> 0.0.1-rc.14
Diff: https://github.com/microsoft/inshellisense/compare/refs/tags/0.0.1-rc.12...0.0.1-rc.14
2024-04-22 12:24:46 -07:00
Malo Bourgon
0c09de94dc inshellisense: 0.0.1-rc.4 -> 0.0.1-rc.12 2024-04-12 09:21:15 -07:00
Malo Bourgon
b4f1587b27 inshellisense: init at 0.0.1-rc.4 2023-11-22 14:42:06 -08:00