about summary refs log tree commit diff
path: root/pkgs/development/libraries/science/math/mongoose/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/science/math/mongoose/default.nix')
-rw-r--r--pkgs/development/libraries/science/math/mongoose/default.nix22
1 files changed, 17 insertions, 5 deletions
diff --git a/pkgs/development/libraries/science/math/mongoose/default.nix b/pkgs/development/libraries/science/math/mongoose/default.nix
index 401497379562f..c7348c9e4a984 100644
--- a/pkgs/development/libraries/science/math/mongoose/default.nix
+++ b/pkgs/development/libraries/science/math/mongoose/default.nix
@@ -1,5 +1,7 @@
-{ lib, stdenv
+{ lib
+, stdenv
 , fetchFromGitHub
+, fetchpatch
 , cmake
 }:
 
@@ -16,17 +18,27 @@ stdenv.mkDerivation rec {
     sha256 = "0ymwd4n8p8s0ndh1vcbmjcsm0x2cc2b7v3baww5y6as12873bcrh";
   };
 
+  patches = [
+    # TODO: remove on next release
+    (fetchpatch {
+      name = "add-an-option-to-disable-coverage.patch";
+      url = "https://github.com/ScottKolo/Mongoose/commit/39f4a0059ff7bad5bffa84369f31839214ac7877.patch";
+      sha256 = "sha256-V8lCq22ixCCzLmKtW6bUL8cvJFZzdgYoA4BFs4xYd3c=";
+    })
+  ];
+
   nativeBuildInputs = [
     cmake
   ];
 
+  # ld: file not found: libclang_rt.profile_osx.a
+  cmakeFlags = lib.optional (stdenv.isDarwin && stdenv.isAarch64) "-DENABLE_COVERAGE=OFF";
+
   meta = with lib; {
     description = "Graph Coarsening and Partitioning Library";
     homepage = "https://github.com/ScottKolo/Mongoose";
-    license = licenses.gpl3;
-    maintainers = with maintainers; [];
+    license = licenses.gpl3Only;
+    maintainers = with maintainers; [ wegank ];
     platforms = with platforms; unix;
-    # never built on aarch64-darwin since first introduction in nixpkgs
-    broken = stdenv.isDarwin && stdenv.isAarch64;
   };
 }