···
10
+
suitesparseVersion = "7.0.1";
stdenv.mkDerivation rec {
outputs = [ "bin" "out" "dev" ];
15
-
owner = "ScottKolo";
17
-
rev = "v${version}";
18
-
sha256 = "0ymwd4n8p8s0ndh1vcbmjcsm0x2cc2b7v3baww5y6as12873bcrh";
19
+
owner = "DrTimothyAldenDavis";
20
+
repo = "SuiteSparse";
21
+
rev = "v${suitesparseVersion}";
22
+
hash = "sha256-EIreweeOx44YDxlnxnJ7l31Ie1jSx6y87VAyEX+4NsQ=";
22
-
# TODO: remove on next release
24
-
name = "add-an-option-to-disable-coverage.patch";
25
-
url = "https://github.com/ScottKolo/Mongoose/commit/39f4a0059ff7bad5bffa84369f31839214ac7877.patch";
26
-
sha256 = "sha256-V8lCq22ixCCzLmKtW6bUL8cvJFZzdgYoA4BFs4xYd3c=";
25
+
nativeBuildInputs = [
30
-
nativeBuildInputs = [
33
+
dontUseCmakeConfigure = true;
36
+
"-DBLAS_LIBRARIES=${blas}"
37
+
"-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON"
34
-
# ld: file not found: libclang_rt.profile_osx.a
35
-
cmakeFlags = lib.optional (stdenv.isDarwin && stdenv.isAarch64) "-DENABLE_COVERAGE=OFF";
41
+
runHook preConfigure
43
+
for f in SuiteSparse_config Mongoose; do
44
+
(cd $f && cmakeConfigurePhase && make -j$NIX_BUILD_CORES)
47
+
runHook postConfigure
53
+
for f in SuiteSparse_config Mongoose; do
54
+
(cd $f/build && make install -j$NIX_BUILD_CORES)
description = "Graph Coarsening and Partitioning Library";
39
-
homepage = "https://github.com/ScottKolo/Mongoose";
62
+
homepage = "https://github.com/DrTimothyAldenDavis/SuiteSparse/tree/dev/Mongoose";
license = licenses.gpl3Only;
maintainers = with maintainers; [ wegank ];
platforms = with platforms; unix;