Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EBTKS: create patch to fix build on Darwin aarch64 #185593

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion pkgs/development/libraries/science/biology/EBTKS/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake, libminc }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, libminc }:

stdenv.mkDerivation rec {
pname = "EBTKS";
Expand All @@ -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 ];

Expand Down