2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, blas
|
|
|
|
, lapack
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "hmat-oss";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "1.8.1";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jeromerobert";
|
|
|
|
repo = "hmat-oss";
|
|
|
|
rev = "refs/tags/${version}";
|
2022-12-17 10:02:37 +00:00
|
|
|
sha256 = "sha256-N6VSQeq2BS/PLcMbyIn/OQfd45zyJJHuOD5bho2nue8=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DHMAT_GIT_VERSION=OFF"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ blas lapack ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A hierarchical matrix C/C++ library";
|
|
|
|
homepage = "https://github.com/jeromerobert/hmat-oss";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ gdinh ];
|
|
|
|
};
|
|
|
|
}
|