Commit Graph

13 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
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
Christina Sørensen
1c4ef0092d
fortune-kind: 0.1.12 -> 0.1.13
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-02-01 06:32:35 +01:00
Christina Sørensen
3bebb818eb
fortune-kind: 0.1.11 -> 0.1.12
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-12-07 05:56:48 +01:00
Christina Sørensen
6e1ae782c2
fortune-kind: 0.1.10 -> 0.1.11
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-11-30 05:41:24 +01:00
Christina Sørensen
5165dc48f7
fortune-kind: 0.1.9 -> 0.1.10
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-11-23 04:28:12 +01:00
Christina Sørensen
e463aedaef
fortune-kind: 0.1.8 -> 0.1.9
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-11-16 11:20:37 +01:00
Christina Sørensen
451b0a4666
fortune-kind: 0.1.7 -> 0.1.8
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-11-09 08:25:08 +01:00
Christina Sørensen
7a63d9163f
fortune-kind: 0.1.6 -> 0.1.7
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-11-02 10:03:13 +01:00
Christina Sørensen
b9dd20b38b
fortune-kind: 0.1.5 -> 0.1.6
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-10-26 13:15:40 +02:00
Christina Sørensen
3a1843fbd9
fortune-kind: 0.1.4 -> 0.1.5
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-10-19 15:58:57 +02:00
Christina Sørensen
3e9aecda60
fortune-kind: 0.1.3 -> 0.1.4
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-10-12 09:39:02 +02:00
Christina Sørensen
fa9985b9da
fortune-kind: init at 0.1.3
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-10-10 05:29:48 +02:00