From bb2fd1be106ae26671b4a5533199401ba3b9cbd0 Mon Sep 17 00:00:00 2001 From: Markus Theil Date: Mon, 31 Jul 2023 17:56:09 +0200 Subject: botan: fix cross compilation on aarch64 Signed-off-by: Markus Theil --- pkgs/development/libraries/botan/generic.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/botan/generic.nix b/pkgs/development/libraries/botan/generic.nix index 567f570f71d..795cd5189ef 100644 --- a/pkgs/development/libraries/botan/generic.nix +++ b/pkgs/development/libraries/botan/generic.nix @@ -29,12 +29,13 @@ stdenv.mkDerivation rec { patches = extraPatches; inherit postPatch; - buildInputs = [ python3 bzip2 zlib gmp boost ] + nativeBuildInputs = [ python3 ]; + buildInputs = [ bzip2 zlib gmp boost ] ++ lib.optionals stdenv.isDarwin [ CoreServices Security ]; configurePhase = '' runHook preConfigure - python configure.py --prefix=$out --with-bzip2 --with-zlib ${extraConfigureFlags}${lib.optionalString stdenv.cc.isClang " --cc=clang"} + python configure.py --prefix=$out --with-bzip2 --with-zlib ${extraConfigureFlags}${lib.optionalString stdenv.cc.isClang " --cc=clang"} ${lib.optionalString stdenv.hostPlatform.isAarch64 " --cpu=aarch64"} runHook postConfigure ''; -- cgit 1.4.1