Commit Graph

10 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
Guillaume DELVIT
001a3c1c21
sqlpage 0.25.0 -> 0.28.0 2024-09-05 19:26:32 +02:00
Guillaume DELVIT
fbf4f33286
sqlpage : 0.24.0 -> 0.25.0 2024-08-02 20:04:31 +02:00
R. Ryantm
0e6c1d7395 sqlpage: 0.23.0 -> 0.24.0 2024-06-25 02:02:24 +00:00
Guillaume DELVIT
7e854568cc
sqlpage : 0.22.0 -> 0.23.0 2024-06-10 20:44:24 +02:00
Guillaume DELVIT
8b79deb9af
sqlpage : 0.20.0 -> 0.22.0 (#317280) 2024-06-06 01:50:38 +02:00
Guillaume DELVIT
b344ba1a3c
sqlpage : 0.15.1 -> 0.20.0 2024-03-22 17:30:34 +01:00
h7x4
12315f53ff treewide: add mainProgram 2023-11-24 21:01:03 +01:00
Mikael Fangel
d2ba8d36ea
sqlpage: 0.9.5 -> 0.15.1 2023-11-10 21:38:32 +01:00
Mostly Void
7f5b5911bd
sqlpage: init at 0.9.5 2023-08-20 12:34:24 +03:00