Commit Graph

14 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
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
figsoda
f7944fddae synth: 0.6.8 -> 0.6.9 2022-11-20 13:53:00 -05:00
Theodore Ni
a30aa05f56
synth: apply patch to fix on rust 1.65 2022-11-15 19:32:27 -08:00
figsoda
1599304c49 synth: 0.6.5-r1 -> 0.6.8 2022-09-11 16:43:25 -04:00
R. Ryantm
6fced8a923 synth: 0.6.4 -> 0.6.5-r1 2022-02-13 09:03:48 +00:00
figsoda
ef859b0c0c synth: 0.6.3 -> 0.6.4 2022-01-12 12:41:25 -05:00
figsoda
3c5f1379f4 synth: 0.6.2 -> 0.6.3 2022-01-10 18:37:20 -05:00
figsoda
10ddd4c7e8 synth: 0.6.1 -> 0.6.2 2021-12-10 11:45:12 -05:00
figsoda
a8d1f24ac2 synth: fix darwin build 2021-11-06 16:23:39 -04:00
figsoda
503a76e4f8 synth: 0.6.0 -> 0.6.1 2021-11-02 08:01:40 -04:00
figsoda
db4b00630a synth: 0.5.6 -> 0.6.0 2021-10-18 17:11:23 -04:00
figsoda
6b9f8629d2 synth: init at 0.5.6 2021-10-10 12:16:27 -04:00