From c85ddc48b7fe732da1ce83d7f5fd5974abc4ea4e Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 28 Nov 2024 11:11:03 -0500 Subject: [PATCH] botan{2,3}: always set --cpu, fix cross compilation --- pkgs/development/libraries/botan/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/development/libraries/botan/default.nix b/pkgs/development/libraries/botan/default.nix index 8d11ee2b7937..a5e72e4f64f0 100644 --- a/pkgs/development/libraries/botan/default.nix +++ b/pkgs/development/libraries/botan/default.nix @@ -79,13 +79,11 @@ let "--with-bzip2" "--with-zlib" "--with-rst2man" + "--cpu=${stdenv.hostPlatform.parsed.cpu.name}" ] ++ lib.optionals stdenv.cc.isClang [ "--cc=clang" ] - ++ lib.optionals stdenv.hostPlatform.isAarch64 [ - "--cpu=aarch64" - ] ++ lib.optionals (lib.versionAtLeast version "3.6.0") [ "--enable-modules=jitter_rng" ];