about summary refs log tree commit diff
path: root/pkgs/development/libraries/libtommath
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-04 11:11:14 +0100
committerRick van Schijndel <Mindavi@users.noreply.github.com>2023-01-06 20:14:33 +0100
commit0bc8e253444545b86c0ae569d777e20c8ade965e (patch)
tree33ac216b019f215883feaac4124d853892b8646a /pkgs/development/libraries/libtommath
parent2520a38d699f829db9fc7e8d257b363c045d2240 (diff)
libtommath: unbreak on aarch64-darwin
Diffstat (limited to 'pkgs/development/libraries/libtommath')
-rw-r--r--pkgs/development/libraries/libtommath/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libtommath/default.nix b/pkgs/development/libraries/libtommath/default.nix
index 352aa4a1f53e5..827e78c81971a 100644
--- a/pkgs/development/libraries/libtommath/default.nix
+++ b/pkgs/development/libraries/libtommath/default.nix
@@ -24,6 +24,8 @@ stdenv.mkDerivation rec {
 
   makefile = "makefile.shared";
 
+  NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-DTARGET_OS_IPHONE=0";
+
   enableParallelBuilding = true;
 
   meta = with lib; {
@@ -31,7 +33,5 @@ stdenv.mkDerivation rec {
     description = "A library for integer-based number-theoretic applications";
     license = with licenses; [ publicDomain wtfpl ];
     platforms = platforms.unix;
-    # never built on aarch64-darwin since first introduction in nixpkgs
-    broken = stdenv.isDarwin && stdenv.isAarch64;
   };
 }