summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2022-12-27 13:31:03 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2022-12-27 13:31:03 +0100
commitc549ba2a2724ff9f2a5a686fee69a56c248249bb (patch)
tree5c2a559b1ee268d78231d28784628bfec5d343bc
parentbat: add completion patch (diff)
downloadnixpkgs-c549ba2a2724ff9f2a5a686fee69a56c248249bb.tar.gz
mongoose: unbreak on aarch64-darwin
-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 401497379562..c7348c9e4a98 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;
};
}