diff --git a/pkgs/development/libraries/science/biology/EBTKS/default.nix b/pkgs/development/libraries/science/biology/EBTKS/default.nix index 2a832fc7c37a2..5c56656c4e5f2 100644 --- a/pkgs/development/libraries/science/biology/EBTKS/default.nix +++ b/pkgs/development/libraries/science/biology/EBTKS/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, cmake, libminc }: +{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, libminc }: stdenv.mkDerivation rec { pname = "EBTKS"; @@ -11,6 +11,15 @@ stdenv.mkDerivation rec { sha256 = "1a1qw6i47fs1izx60l1ysabpmyx9j5sjnbdv8b47wi2xcc9i3hpq"; }; + patches = [ + # Fixes compilation for Darwin aarch64 by using the isfinite macro instead + # of the finite function, which has been removed from libSystem. + (fetchpatch { + url = "https://github.com/BIC-MNI/EBTKS/pull/7/commits/03a0ef93ae274314e31c029ebb9dcaf06d19fc1e.patch"; + sha256 = "IeNCUGn0VrAh4Z32ShjGDwWCYmwhXiP1+0VcyiGg8t8="; + }) + ]; + nativeBuildInputs = [ cmake ]; buildInputs = [ libminc ];