Commit Graph

7 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
Francesco Gazzetta
af46c5cc90 skia: 124-unstable-2024-05-22 -> 129-unstable-2024-09-18 2024-09-21 18:07:05 +02:00
jopejoe1
8b4061fd60 skia: make use of gnFlags 2024-09-03 13:22:53 +00:00
superherointj
9976e85d8e
Merge pull request #334339 from vytskalt/skia-cross
skia: fix cross build
2024-08-14 16:27:16 -03:00
vytskalt
b1d3ab18e5
skia: fix cross build 2024-08-13 18:39:42 +03:00
Francesco Gazzetta
5f27dd5e5a skia: fix missing SkFontMgr_New_FontConfig 2024-08-13 14:06:58 +00:00
Francesco Gazzetta
e453c65ac9 skia: init at 124-unstable-2024-05-22 2024-07-11 21:41:07 +02:00