nixpkgs/pkgs/build-support/setup-hooks
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
..
make-binary-wrapper Revert "make-binary-wrapper: add cc to propagatedBuildInputs" 2024-05-27 21:56:47 +02:00
mpi-check-hook mpiCheckPhaseHook: update to use openmpi-5 compatible parameters 2024-08-12 21:45:24 +02:00
patch-ppd-files
patch-rc-path-hooks
postgresql-test-hook postgresqlTestHook: add postgresqlExtraSettings variable 2024-01-22 04:20:00 +00:00
wrap-gapps-hook treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
audit-tmpdir.sh
auto-patchelf.py autoPatchelfHook: add keep_libc flag (#332617) 2024-08-14 02:54:27 -04:00
auto-patchelf.sh autoPatchelfHook: add keep_libc flag (#332617) 2024-08-14 02:54:27 -04:00
autoreconf.sh stdenv: support default values in concatTo 2024-08-24 12:23:35 +02:00
compress-man-pages.sh
copy-desktop-items.sh
copy-pkgconfig-items.sh
desktop-to-darwin-bundle.sh writeDarwinBundle: use binary wrapper 2023-08-21 13:29:12 +10:00
die.sh
enable-coverage-instrumentation.sh
find-xml-catalogs.sh
fix-darwin-dylib-names.sh fixDarwinDylibNames: fix error message output 2024-06-01 22:49:42 +02:00
gog-unpack.sh
keep-build-tree.sh
ld-is-cc-hook.sh
make-coverage-analysis-report.sh
make-symlinks-relative.sh
make-wrapper.sh Fix venv creation in Python environments 2024-03-21 19:26:57 -06:00
move-build-tree.sh
move-docs.sh
move-lib64.sh
move-sbin.sh
move-systemd-user-units.sh
multiple-outputs.sh stdenv: Fix possible issues discovered with 2023-09-02 03:25:36 +03:00
patch-shebangs.sh patch-shebangs: don't patch shebangs with bash builtins 2024-07-29 11:40:29 +02:00
prune-libtool-files.sh
reproducible-builds.sh
role.bash
separate-debug-info.sh separateDebugInfo: tell rustc not to strip 2024-07-20 10:05:57 +02:00
set-java-classpath.sh
set-source-date-epoch-to-latest.sh setup-hooks/set-source-date-epoch-to-latest.sh: handle $path that starts with dash 2024-06-10 23:56:46 +01:00
setup-debug-info-dirs.sh
shorten-perl-shebang.sh
strip-java-archives.sh stripJavaArchivesHook: rename from canonicalize-jars-hook and use strip-nondeterminism 2024-03-17 13:30:54 +01:00
strip.sh setup-hooks/strip: uniqify files by inode number before stripping 2024-05-24 16:53:14 -05:00
update-autotools-gnu-config-scripts.sh
use-old-cxx-abi.sh
validate-pkg-config.sh
win-dll-link.sh Resolve _all_ Windows DLL dependencies 2024-06-25 19:04:22 -07:00