lol
1{ lib
2, stdenv
3, fetchFromGitHub
4, cmake
5, gnum4
6}:
7
8stdenv.mkDerivation rec {
9 pname = "suitesparse-graphblas";
10 version = "9.1.0";
11
12 outputs = [ "out" "dev" ];
13
14 src = fetchFromGitHub {
15 owner = "DrTimothyAldenDavis";
16 repo = "GraphBLAS";
17 rev = "v${version}";
18 hash = "sha256-YK0REOqoNa55tQt6NH/0QQ07pzAImDR5kC00sbFILH8=";
19 };
20
21 nativeBuildInputs = [
22 cmake
23 gnum4
24 ];
25
26 preConfigure = ''
27 export HOME=$(mktemp -d)
28 '';
29
30 meta = with lib; {
31 description = "Graph algorithms in the language of linear algebra";
32 homepage = "https://people.engr.tamu.edu/davis/GraphBLAS.html";
33 license = licenses.asl20;
34 maintainers = with maintainers; [ wegank ];
35 platforms = with platforms; unix;
36 };
37}