diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-04-19 18:34:47 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-04-19 18:34:47 +0000 |
commit | 887edae254823a8428a7119c8f052aac9313836a (patch) | |
tree | d4fdcec8f7e1520ae5e2e31cb82b0006f021c692 /pkgs/test/make-binary-wrapper | |
parent | a21f3437fc7abfaf09c43aa38bf9c357157311e6 (diff) |
tests.makeBinaryWrapper: avoid same-triple cross
We shouldn't try compiling to aarch64-unknown-linux-gnu from aarch64-unknown-linux-gnu, because that tends to confuse things and is not representative of actual cross compilation usage.
Diffstat (limited to 'pkgs/test/make-binary-wrapper')
-rw-r--r-- | pkgs/test/make-binary-wrapper/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/test/make-binary-wrapper/default.nix b/pkgs/test/make-binary-wrapper/default.nix index afc2b41ff5a7a..4c6fffd100a72 100644 --- a/pkgs/test/make-binary-wrapper/default.nix +++ b/pkgs/test/make-binary-wrapper/default.nix @@ -52,7 +52,7 @@ let "prefix" "suffix" ] makeGoldenTest // lib.optionalAttrs (! stdenv.isDarwin) { - cross = pkgsCross.aarch64-multiplatform.callPackage ./cross.nix { }; + cross = pkgsCross.${if stdenv.buildPlatform.isAarch64 then "gnu64" else "aarch64-multiplatform"}.callPackage ./cross.nix { }; }; in |