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>
This commit is contained in:
Sergei Trofimovich 2023-07-27 22:54:57 +01:00
parent 1fb560746e
commit cf25fdfac0

View file

@ -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;