diff options
author | George Huebner <george@feyor.sh> | 2023-10-25 20:51:59 -0500 |
---|---|---|
committer | George Huebner <george@feyor.sh> | 2024-03-21 19:14:50 -0500 |
commit | 178fe4e17f85295c738e128640e7e34aceb21154 (patch) | |
tree | 72c94581f4a049624f770e5b9787a6ed5e48b777 /pkgs/development/libraries/science/math | |
parent | a649e0e5f75b2186b8a802ec9f58deadea7af7f0 (diff) |
m4rie: fix build on aarch64-darwin
It appears m4rie only builds properly on Apple Clang; turning off optimizations seems to resolve the failing test cases. See https://bitbucket.org/malb/m4rie/issues/23/trying-to-compile-on-apple-m1
Diffstat (limited to 'pkgs/development/libraries/science/math')
-rw-r--r-- | pkgs/development/libraries/science/math/m4rie/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/libraries/science/math/m4rie/default.nix b/pkgs/development/libraries/science/math/m4rie/default.nix index 214f27046527e..ac513297f1590 100644 --- a/pkgs/development/libraries/science/math/m4rie/default.nix +++ b/pkgs/development/libraries/science/math/m4rie/default.nix @@ -21,6 +21,9 @@ stdenv.mkDerivation rec { m4ri ]; + # does not compile correctly with -O2 on LLVM clang; see + # https://bitbucket.org/malb/m4rie/issues/23/trying-to-compile-on-apple-m1 + makeFlags = [] ++ lib.optionals stdenv.isDarwin [ "CFLAGS=-O0" ]; nativeBuildInputs = [ autoreconfHook ]; @@ -35,7 +38,5 @@ stdenv.mkDerivation rec { license = licenses.gpl2Plus; maintainers = teams.sage.members; platforms = platforms.unix; - # never built on aarch64-darwin since first introduction in nixpkgs - broken = stdenv.isDarwin && stdenv.isAarch64; }; } |