Commit Graph

9 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
5902de231b sarif-fmt: 0.6.5 -> 0.6.6 2024-09-06 07:04:30 +00:00
R. Ryantm
17996a3825 sarif-fmt: 0.6.0 -> 0.6.5 2024-08-10 23:18:10 +00:00
R. Ryantm
a2312ca74f sarif-fmt: 0.5.0 -> 0.6.0 2024-08-01 10:10:16 +00:00
seth
f3d6c633b4
sarif-fmt: testers.testVersion -> versionCheckHook
this results in less ugly recursion
2024-07-15 14:52:53 -04:00
seth
870b2353d2
sarif-fmt: add updateScript 2024-07-15 14:52:51 -04:00
seth
f06ed2b167
sarif-fmt: fetchFromGitHub -> fetchCrate
this makes things much easier to build as we don't need to account for
the monorepo
2024-07-15 14:52:28 -04:00
seth
58a3270285
sarif-fmt: 0.4.2 -> 0.5.0
Diff: https://github.com/psastras/sarif-rs/compare/sarif-fmt-v0.4.2...sarif-fmt-v0.5.0
2024-07-15 14:08:17 -04:00
seth
5e7cc9a640 sarif-fmt: init at 0.4.2 2024-06-10 17:10:59 +03:00