blob: a0926cc628130368ac53f9592897595b29281c12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
lib,
stdenv,
fetchFromGitHub,
cmake,
gnum4,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "suitesparse-graphblas";
version = "10.5.0";
outputs = [
"out"
"dev"
];
src = fetchFromGitHub {
owner = "DrTimothyAldenDavis";
repo = "GraphBLAS";
rev = "v${finalAttrs.version}";
hash = "sha256-N+rpBYcpAjUPPeeqU6pMrPKR+b5rBP+z7Z9i2jS6kNE=";
};
nativeBuildInputs = [
cmake
gnum4
];
preConfigure = ''
export HOME=$(mktemp -d)
'';
cmakeFlags = [
(lib.cmakeBool "GRAPHBLAS_USE_JIT" (
!(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64)
))
];
meta = {
description = "Graph algorithms in the language of linear algebra";
homepage = "https://people.engr.tamu.edu/davis/GraphBLAS.html";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ wegank ];
platforms = with lib.platforms; unix;
};
})
|