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"
```
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/14r53ilafr0lhqc5czfifp4bwqk5rh1c-fossil-2.5/bin/fossil --help` got 0 exit code
- ran `/nix/store/14r53ilafr0lhqc5czfifp4bwqk5rh1c-fossil-2.5/bin/fossil help` got 0 exit code
- ran `/nix/store/14r53ilafr0lhqc5czfifp4bwqk5rh1c-fossil-2.5/bin/fossil version` and found version 2.5
- ran `/nix/store/14r53ilafr0lhqc5czfifp4bwqk5rh1c-fossil-2.5/bin/fossil --help` and found version 2.5
- ran `/nix/store/14r53ilafr0lhqc5czfifp4bwqk5rh1c-fossil-2.5/bin/fossil help` and found version 2.5
- found 2.5 with grep in /nix/store/14r53ilafr0lhqc5czfifp4bwqk5rh1c-fossil-2.5
- found 2.5 in filename of file in /nix/store/14r53ilafr0lhqc5czfifp4bwqk5rh1c-fossil-2.5
The attached patch advances the version of the fossil expression in
Nixpkgs to the latest release 1.36
From fdd5d610e35eed355f5f3fec9d3675aa60f36292 Mon Sep 17 00:00:00 2001
From: Karn Kallio <kkallio@skami.org>
Date: Tue, 8 Nov 2016 20:23:22 -0400
Subject: [PATCH] fossil : advance to version 1.36