about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGeorge Huebner <george@feyor.sh>2023-10-25 20:51:59 -0500
committerGeorge Huebner <george@feyor.sh>2024-03-21 19:14:50 -0500
commit178fe4e17f85295c738e128640e7e34aceb21154 (patch)
tree72c94581f4a049624f770e5b9787a6ed5e48b777
parenta649e0e5f75b2186b8a802ec9f58deadea7af7f0 (diff)
downloadnixlib-178fe4e17f85295c738e128640e7e34aceb21154.tar
nixlib-178fe4e17f85295c738e128640e7e34aceb21154.tar.gz
nixlib-178fe4e17f85295c738e128640e7e34aceb21154.tar.bz2
nixlib-178fe4e17f85295c738e128640e7e34aceb21154.tar.lz
nixlib-178fe4e17f85295c738e128640e7e34aceb21154.tar.xz
nixlib-178fe4e17f85295c738e128640e7e34aceb21154.tar.zst
nixlib-178fe4e17f85295c738e128640e7e34aceb21154.zip
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
-rw-r--r--pkgs/development/libraries/science/math/m4rie/default.nix5
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 214f27046527..ac513297f159 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;
   };
 }