Commit Graph

19 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
aleksana
a9709c299b treewide: change cargoSha256 with SRI hash to cargoHash 2024-07-03 21:53:11 +08:00
Sam A. Horvath-Hunt
9be01e3f14
statix: 0.5.6 -> 0.5.8 2023-09-09 12:42:23 +01:00
zowoq
d886e44d9b statix: add meta.mainProgram 2023-08-05 13:08:04 +10:00
kilianar
970cd2643d statix: 0.5.4 -> 0.5.6 2022-06-19 21:32:01 +10:00
AndersonTorres
3f19fc37a3 Move misc/vim-plugins to applications/editors/vim/plugins 2022-02-24 20:26:07 -03:00
R. Ryantm
2bee70d513 statix: 0.5.3 -> 0.5.4 2022-02-22 04:38:37 +10:00
Michael Schneider
0d55e6d93a statix: v0.5.2 -> v0.5.3 2022-02-10 11:47:49 -08:00
Akshay
1eb57f1446 statix: v0.4.2 -> v0.5.2 2022-01-28 19:58:56 +05:30
figsoda
af9863fd44 statix: fix darwin build 2021-12-06 14:03:29 -05:00
Akshay
8e29102ccb statix: 0.4.1 -> 0.4.2 2021-12-04 16:09:03 +05:30
figsoda
cda6d38346 statix: 0.4.0 -> 0.4.1 2021-11-28 14:45:48 -05:00
figsoda
64bbe7aa17 statix: use buildFeatures 2021-11-16 08:11:52 -05:00
Akshay
57225d51a6 statix: 0.3.6 -> 0.4.0 2021-11-06 20:34:21 +05:30
Akshay
c22dad59dc statix: 0.3.5 -> 0.3.6 2021-11-05 16:56:45 +05:30
figsoda
946f55cc04 statix: 0.3.4 -> 0.3.5 2021-11-01 12:19:13 -04:00
figsoda
9ec2134b68 statix: 0.3.1 -> 0.3.4 2021-10-31 22:29:47 -04:00
figsoda
19fec7306e vimPlugisn.statix: add simple check and note for version 2021-10-29 11:16:11 -04:00
figsoda
072b073309 statix: init at 0.3.1 2021-10-29 11:16:07 -04:00