1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 11:10:03 +00:00
nixpkgs/pkgs/test/make-binary-wrapper
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
..
add-flags.c makeBinaryWrapper: protect wildcards in flags 2023-09-18 02:49:33 -04:00
add-flags.cmdline makeBinaryWrapper: protect wildcards in flags 2023-09-18 02:49:33 -04:00
add-flags.env makeBinaryWrapper: protect wildcards in flags 2023-09-18 02:49:33 -04:00
argv0.c Add golden effects test 2021-12-09 11:32:28 +00:00
argv0.cmdline Add golden effects test 2021-12-09 11:32:28 +00:00
argv0.env Add golden effects test 2021-12-09 11:32:28 +00:00
basic.c Add golden effects test 2021-12-09 11:32:28 +00:00
basic.cmdline Add golden effects test 2021-12-09 11:32:28 +00:00
basic.env Add golden effects test 2021-12-09 11:32:28 +00:00
chdir.c makeBinaryWrapper: Fix chdir golden test for darwin 2021-12-16 21:12:59 +01:00
chdir.cmdline makeBinaryWrapper: Fix chdir golden test for darwin 2021-12-16 21:12:59 +01:00
chdir.env makeBinaryWrapper: Fix chdir golden test for darwin 2021-12-16 21:12:59 +01:00
combination.c makeWrapper,makeBinaryWrapper: implement --append-flags 2022-05-30 23:07:58 +02:00
combination.cmdline Add golden effects test 2021-12-09 11:32:28 +00:00
combination.env Add golden effects test 2021-12-09 11:32:28 +00:00
cross.nix tests.makeBinaryWrapper: fix cross test on aarch64-linux 2023-09-15 08:48:31 +03:00
default.nix treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
env.c Add golden effects test 2021-12-09 11:32:28 +00:00
env.cmdline Add golden effects test 2021-12-09 11:32:28 +00:00
env.env Add golden effects test 2021-12-09 11:32:28 +00:00
envcheck.c Add golden effects test 2021-12-09 11:32:28 +00:00
inherit-argv0.c Add golden effects test 2021-12-09 11:32:28 +00:00
inherit-argv0.cmdline Add golden effects test 2021-12-09 11:32:28 +00:00
inherit-argv0.env Add golden effects test 2021-12-09 11:32:28 +00:00
invalid-env.c Add golden effects test 2021-12-09 11:32:28 +00:00
invalid-env.cmdline Add golden effects test 2021-12-09 11:32:28 +00:00
overlength-strings.c makeBinaryWrapper: add overlength-strings test 2022-05-06 17:03:30 +02:00
overlength-strings.cmdline makeBinaryWrapper: add overlength-strings test 2022-05-06 17:03:30 +02:00
overlength-strings.env makeBinaryWrapper: add overlength-strings test 2022-05-06 17:03:30 +02:00
prefix.c Add golden effects test 2021-12-09 11:32:28 +00:00
prefix.cmdline Add golden effects test 2021-12-09 11:32:28 +00:00
prefix.env Add golden effects test 2021-12-09 11:32:28 +00:00
suffix.c Add golden effects test 2021-12-09 11:32:28 +00:00
suffix.cmdline Add golden effects test 2021-12-09 11:32:28 +00:00
suffix.env Add golden effects test 2021-12-09 11:32:28 +00:00