Commit Graph

8 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
éclairevoyant
70aea8ceb3
keeweb: remove dead code 2024-08-30 16:43:59 -04:00
éclairevoyant
e600974d6c
keeweb: remove meta = with lib; 2024-08-30 16:41:01 -04:00
éclairevoyant
6dc3fd448f
keeweb: make overriding easier 2024-08-30 16:40:08 -04:00
éclairevoyant
b4b5c236dc
keeweb: fix runtime crash 2024-08-30 16:39:19 -04:00
éclairevoyant
9c81cde9e5
keeweb: fix gtk wrapping 2024-08-30 16:38:17 -04:00
éclairevoyant
be56643cbb
keeweb: nixfmt 2024-08-30 16:36:29 -04:00
éclairevoyant
f9839bc927
keeweb: migrate to by-name 2024-08-30 16:34:55 -04:00