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
Nick Cao
88a5ce0975
materialize: drop redundant LIBCLANG_PATH 2024-04-30 09:48:45 -04:00
happysalada
571eb488bd materialize: 0.17.0 -> 0.84.2 2024-01-24 20:35:47 -05:00
Yureka
f8cbc3c281 tree-wide: convert rust with git deps to importCargoLock 2023-03-26 01:52:04 +01:00
Petros Angelatos
c1ff59080e materialize: 0.15.0 -> 0.17.0
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2022-03-19 16:51:54 -04:00
Petros Angelatos
ea634d99e8 materialize: 0.10.0 -> 0.15.0
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2022-01-07 10:35:55 +01:00
Petros Angelatos
01a19ba42f materialize: 0.9.4 -> 0.10.0
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2021-11-25 12:59:16 +01:00
Petros Angelatos
fe296b79b4 materialize: 0.8.3 -> 0.9.4
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2021-09-18 22:52:37 +09:00
Petros Angelatos
5480cb98ec materialize: 0.8.1 -> 0.8.3
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2021-09-03 10:31:26 +09:00
Petros Angelatos
82dad6764a materialize: 0.8.0 -> 0.8.1
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2021-07-03 12:30:51 +02:00
Petros Angelatos
be976cdda9 materialize: 0.7.1 -> 0.8.0
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2021-06-12 19:26:36 +09:00
Petros Angelatos
f8c1312e95 materialize: init at 0.7.1
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2021-04-14 18:19:34 +02:00