Merge pull request #207945 from wegank/mongoose-darwin

mongoose: unbreak on aarch64-darwin
This commit is contained in:
markuskowa 2022-12-27 19:05:16 +01:00 committed by GitHub
commit 01b6323cea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
};
}