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.
SSL support was selectable via a flag, but as we are bound to have OpenSSL on
the machine anyway, it really doesn't make sense to not compile in support.
Did a bunch of cleanups too.
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/bftpd/versions.
These checks were done:
- built on NixOS
- ran `/nix/store/22swhqg3b1j8jxnlnndb9d4rhx5ajaam-bftpd-4.9/bin/bftpd -h` got 0 exit code
- ran `/nix/store/22swhqg3b1j8jxnlnndb9d4rhx5ajaam-bftpd-4.9/bin/bftpd --help` got 0 exit code
- ran `/nix/store/22swhqg3b1j8jxnlnndb9d4rhx5ajaam-bftpd-4.9/bin/bftpd -v` and found version 4.9
- ran `/nix/store/22swhqg3b1j8jxnlnndb9d4rhx5ajaam-bftpd-4.9/bin/bftpd --version` and found version 4.9
- ran `/nix/store/22swhqg3b1j8jxnlnndb9d4rhx5ajaam-bftpd-4.9/bin/bftpd -h` and found version 4.9
- ran `/nix/store/22swhqg3b1j8jxnlnndb9d4rhx5ajaam-bftpd-4.9/bin/bftpd --help` and found version 4.9
- found 4.9 with grep in /nix/store/22swhqg3b1j8jxnlnndb9d4rhx5ajaam-bftpd-4.9
- directory tree listing: https://gist.github.com/f0a3568c5073cae5ff7e99964b767161
Semi-automatic update. These checks were done:
- built on NixOS
- ran `/nix/store/jl7d3l14s4p2f7r9mm9pij1ifpszkziv-bftpd-4.8/bin/bftpd -h` got 0 exit code
- ran `/nix/store/jl7d3l14s4p2f7r9mm9pij1ifpszkziv-bftpd-4.8/bin/bftpd --help` got 0 exit code
- ran `/nix/store/jl7d3l14s4p2f7r9mm9pij1ifpszkziv-bftpd-4.8/bin/bftpd -v` and found version 4.8
- ran `/nix/store/jl7d3l14s4p2f7r9mm9pij1ifpszkziv-bftpd-4.8/bin/bftpd --version` and found version 4.8
- ran `/nix/store/jl7d3l14s4p2f7r9mm9pij1ifpszkziv-bftpd-4.8/bin/bftpd -h` and found version 4.8
- ran `/nix/store/jl7d3l14s4p2f7r9mm9pij1ifpszkziv-bftpd-4.8/bin/bftpd --help` and found version 4.8
- found 4.8 with grep in /nix/store/jl7d3l14s4p2f7r9mm9pij1ifpszkziv-bftpd-4.8
- found 4.8 in filename of file in /nix/store/jl7d3l14s4p2f7r9mm9pij1ifpszkziv-bftpd-4.8
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-statsdecode help` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-pw -h` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-pw --help` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-pw help` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-pw -V` and found version 1.0.47
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-pw -v` and found version 1.0.47
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-pw --version` and found version 1.0.47
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-pw version` and found version 1.0.47
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-pw -h` and found version 1.0.47
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-pw --help` and found version 1.0.47
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-pw help` and found version 1.0.47
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-pwconvert -h` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-pwconvert --help` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-pwconvert help` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-authd -h` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-authd --help` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-authd help` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-ftpd -h` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-ftpd --help` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-ftpd help` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-ftpd -V` and found version 1.0.47
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-ftpd -v` and found version 1.0.47
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-ftpd --version` and found version 1.0.47
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-ftpwho -h` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-ftpwho --help` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-ftpwho help` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-mrtginfo -h` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-mrtginfo --help` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-mrtginfo help` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-quotacheck -h` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-quotacheck --help` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-quotacheck -V` and found version 1.0.47
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-quotacheck -v` and found version 1.0.47
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-quotacheck --version` and found version 1.0.47
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-quotacheck --help` and found version 1.0.47
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-uploadscript -h` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-uploadscript --help` got 0 exit code
- ran `/nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47/bin/pure-uploadscript help` got 0 exit code
- found 1.0.47 with grep in /nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47
- found 1.0.47 in filename of file in /nix/store/w574k17jp6zx54xy328z4c143lpzv87k-pure-ftpd-1.0.47
cc "@lethalman"