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
Pol Dellaiera
c759efa5e7
workflows/check-nix-format: enforce for php-packages 2024-05-04 23:04:36 +02:00
R. Ryantm
4ea78aa4e4 php80Extensions.sqlsrv: 5.10.0 -> 5.10.1 2022-08-01 05:51:01 +00:00
Aaron Andersen
b8ed9b8f5c php.extensions.sqlsrv: 5.9.0 -> 5.10.0 2022-01-31 14:51:39 -05:00
Elis Hirwing
e76ccc6b27
php.extensions: Add missing meta info 2021-06-08 13:49:11 +02:00
Elis Hirwing
5ad7fb28f6
treewide/php-packages: Drop pkgs from arguments to packages 2021-02-27 11:29:20 +01:00
Aaron Andersen
807762898b php.extensions.sqlsrv: 5.8.1 -> 5.9.0 2021-01-30 18:06:53 -05:00
Elis Hirwing
a004e2ca68
phpExtensions.sqlsrv: Move to separate directory 2020-10-11 19:55:31 +02:00