Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #246375 from thillux/botan-cross-aarch64

botan: fix cross compilation on aarch64

authored by 7c6f434c and committed by GitHub 356c6dcd 714bd4a3

+3 -2
+3 -2
pkgs/development/libraries/botan/generic.nix
··· 29 29 patches = extraPatches; 30 30 inherit postPatch; 31 31 32 - buildInputs = [ python3 bzip2 zlib gmp boost ] 32 + nativeBuildInputs = [ python3 ]; 33 + buildInputs = [ bzip2 zlib gmp boost ] 33 34 ++ lib.optionals stdenv.isDarwin [ CoreServices Security ]; 34 35 35 36 configurePhase = '' 36 37 runHook preConfigure 37 - python configure.py --prefix=$out --with-bzip2 --with-zlib ${extraConfigureFlags}${lib.optionalString stdenv.cc.isClang " --cc=clang"} 38 + python configure.py --prefix=$out --with-bzip2 --with-zlib ${extraConfigureFlags}${lib.optionalString stdenv.cc.isClang " --cc=clang"} ${lib.optionalString stdenv.hostPlatform.isAarch64 " --cpu=aarch64"} 38 39 runHook postConfigure 39 40 ''; 40 41