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"
```
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
tlslite has a test failure on Python 3.7 [0]. @tomato42, a commiter of
tlslite and author of tlslite-ng said, that tlslite is abandoned (last
commit 2015) and tlslite-ng should be used as a drop in replacement.
[0] https://github.com/trevp/tlslite/issues/121
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done:
- built on NixOS
- ran `/nix/store/9f6kwyk2zhwhgxkvk2ms8v6g3qz3g154-electron-cash-3.1.6/bin/.electron-cash-wrapped -h` got 0 exit code
- ran `/nix/store/9f6kwyk2zhwhgxkvk2ms8v6g3qz3g154-electron-cash-3.1.6/bin/.electron-cash-wrapped --help` got 0 exit code
- ran `/nix/store/9f6kwyk2zhwhgxkvk2ms8v6g3qz3g154-electron-cash-3.1.6/bin/.electron-cash-wrapped help` got 0 exit code
- ran `/nix/store/9f6kwyk2zhwhgxkvk2ms8v6g3qz3g154-electron-cash-3.1.6/bin/.electron-cash-wrapped version` and found version 3.1.6
- ran `/nix/store/9f6kwyk2zhwhgxkvk2ms8v6g3qz3g154-electron-cash-3.1.6/bin/electron-cash -h` got 0 exit code
- ran `/nix/store/9f6kwyk2zhwhgxkvk2ms8v6g3qz3g154-electron-cash-3.1.6/bin/electron-cash --help` got 0 exit code
- ran `/nix/store/9f6kwyk2zhwhgxkvk2ms8v6g3qz3g154-electron-cash-3.1.6/bin/electron-cash help` got 0 exit code
- ran `/nix/store/9f6kwyk2zhwhgxkvk2ms8v6g3qz3g154-electron-cash-3.1.6/bin/electron-cash version` and found version 3.1.6
- found 3.1.6 with grep in /nix/store/9f6kwyk2zhwhgxkvk2ms8v6g3qz3g154-electron-cash-3.1.6
- directory tree listing: https://gist.github.com/76db342c6da1ceac5b3b7dced43798f9