Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 47 lines 897 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 gnum4, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "suitesparse-graphblas"; 11 version = "10.1.0"; 12 13 outputs = [ 14 "out" 15 "dev" 16 ]; 17 18 src = fetchFromGitHub { 19 owner = "DrTimothyAldenDavis"; 20 repo = "GraphBLAS"; 21 rev = "v${version}"; 22 hash = "sha256-XJZftjmSQJNzcMCd/kLaXkDsEoGk1+24X70ox4E1EZM="; 23 }; 24 25 nativeBuildInputs = [ 26 cmake 27 gnum4 28 ]; 29 30 preConfigure = '' 31 export HOME=$(mktemp -d) 32 ''; 33 34 cmakeFlags = [ 35 (lib.cmakeBool "GRAPHBLAS_USE_JIT" ( 36 !(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) 37 )) 38 ]; 39 40 meta = with lib; { 41 description = "Graph algorithms in the language of linear algebra"; 42 homepage = "https://people.engr.tamu.edu/davis/GraphBLAS.html"; 43 license = licenses.asl20; 44 maintainers = with maintainers; [ wegank ]; 45 platforms = with platforms; unix; 46 }; 47}