Files

48 lines
920 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
gnum4,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "suitesparse-graphblas";
version = "10.3.2";
outputs = [
"out"
"dev"
];
src = fetchFromGitHub {
owner = "DrTimothyAldenDavis";
repo = "GraphBLAS";
rev = "v${finalAttrs.version}";
hash = "sha256-M9MSJfrZP8VY/CPGbQkjyLFVXg25xy+8mIiJsHOdhBI=";
};
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;
};
})