From c777fbabdb98195ee58d32e620921dfd162387ad Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Mon, 7 Nov 2022 15:12:18 +0100 Subject: [PATCH] EBTKS: fix build on aarch64-darwin --- .../development/libraries/science/biology/EBTKS/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/science/biology/EBTKS/default.nix b/pkgs/development/libraries/science/biology/EBTKS/default.nix index 2a832fc7c37a..7a6122fbc8db 100644 --- a/pkgs/development/libraries/science/biology/EBTKS/default.nix +++ b/pkgs/development/libraries/science/biology/EBTKS/default.nix @@ -11,6 +11,12 @@ stdenv.mkDerivation rec { sha256 = "1a1qw6i47fs1izx60l1ysabpmyx9j5sjnbdv8b47wi2xcc9i3hpq"; }; + # error: use of undeclared identifier 'finite'; did you mean 'isfinite'? + postPatch = '' + substituteInPlace templates/EBTKS/SimpleArray.h \ + --replace "#define FINITE(x) finite(x)" "#define FINITE(x) isfinite(x)" + ''; + nativeBuildInputs = [ cmake ]; buildInputs = [ libminc ];