diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2023-07-27 22:54:57 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2023-07-28 07:29:18 +0100 |
commit | cf25fdfac063650e98b9459ada8d1b48fd2e3b75 (patch) | |
tree | e3f5dd2137d1e1020e95633bfa3d286528a84c26 /pkgs/tools/system/fio | |
parent | 1fb560746e1f06f4f32b0ff76da3309f9284e618 (diff) |
fio: fix cross-compilation
Without the change `pkgsCross.aarch64-multiplatform.fio` fails build as: ``` $ nix build -f. pkgsCross.aarch64-multiplatform.fio ... fio-aarch64-unknown-linux-gnu> Bad option --build=x86_64-unknown-linux-gnu fio-aarch64-unknown-linux-gnu> Bad option --host=aarch64-unknown-linux-gnu ``` Co-authored-by: Nick Cao <nickcao@nichi.co>
Diffstat (limited to 'pkgs/tools/system/fio')
-rw-r--r-- | pkgs/tools/system/fio/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/system/fio/default.nix b/pkgs/tools/system/fio/default.nix index 00c5b6c68fad2..441e359e13db4 100644 --- a/pkgs/tools/system/fio/default.nix +++ b/pkgs/tools/system/fio/default.nix @@ -16,6 +16,10 @@ stdenv.mkDerivation rec { buildInputs = [ python3 zlib ] ++ lib.optional (!stdenv.isDarwin) libaio; + # ./configure does not support autoconf-style --build=/--host=. + # We use $CC instead. + configurePlatforms = [ ]; + nativeBuildInputs = [ makeWrapper python3.pkgs.wrapPython ]; strictDeps = true; |