mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
tests.makeBinaryWrapper: fix cross test on aarch64-linux
This commit is contained in:
parent
fc21cde24b
commit
57040cc3eb
@ -2,15 +2,20 @@
|
||||
, runCommand
|
||||
, makeBinaryWrapper
|
||||
, binutils
|
||||
, lib
|
||||
, expectedArch ? stdenv.hostPlatform.parsed.cpu.name
|
||||
}:
|
||||
|
||||
|
||||
runCommand "make-binary-wrapper-test-cross" {
|
||||
nativeBuildInputs = [
|
||||
makeBinaryWrapper
|
||||
binutils
|
||||
];
|
||||
inherit expectedArch;
|
||||
# For x86_64-linux the machine field is
|
||||
# Advanced Micro Devices X86-64
|
||||
# and uses a dash instead of a underscore unlike x86_64-linux in hostPlatform.parsed.cpu.name
|
||||
expectedArch = lib.replaceStrings ["_"] ["-"] expectedArch;
|
||||
} ''
|
||||
touch prog
|
||||
chmod +x prog
|
||||
|
Loading…
Reference in New Issue
Block a user