From cf25fdfac063650e98b9459ada8d1b48fd2e3b75 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 27 Jul 2023 22:54:57 +0100 Subject: [PATCH] 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 --- pkgs/tools/system/fio/default.nix | 4 ++++ 1 file changed, 4 insertions(+) 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;