depot/third_party/nixpkgs/pkgs/development/libraries/hmat-oss/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

37 lines
720 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, blas
, lapack
}:
stdenv.mkDerivation rec {
pname = "hmat-oss";
version = "1.9.0";
src = fetchFromGitHub {
owner = "jeromerobert";
repo = "hmat-oss";
rev = "refs/tags/${version}";
sha256 = "sha256-JW6zghoYnF7NcAuAACgTQoxANEnmwjUAB8jCpof7Ums=";
};
cmakeFlags = [
"-DHMAT_GIT_VERSION=OFF"
];
nativeBuildInputs = [ cmake ];
buildInputs = [ blas lapack ];
enableParallelBuilding = true;
meta = with lib; {
description = "Hierarchical matrix C/C++ library";
homepage = "https://github.com/jeromerobert/hmat-oss";
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = with maintainers; [ gdinh ];
};
}