From 1af6f5a2220b2d1a88a1a8c8bf7e9972b3315c89 Mon Sep 17 00:00:00 2001 From: Grace Dinh Date: Tue, 16 Aug 2022 15:59:41 -0700 Subject: [PATCH] hmat-oss: init at 1.7.1 --- .../libraries/hmat-oss/default.nix | 37 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/libraries/hmat-oss/default.nix diff --git a/pkgs/development/libraries/hmat-oss/default.nix b/pkgs/development/libraries/hmat-oss/default.nix new file mode 100644 index 000000000000..3455cf250ce6 --- /dev/null +++ b/pkgs/development/libraries/hmat-oss/default.nix @@ -0,0 +1,37 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, blas +, lapack +}: + + +stdenv.mkDerivation rec { + pname = "hmat-oss"; + version = "1.7.1"; + + src = fetchFromGitHub { + owner = "jeromerobert"; + repo = "hmat-oss"; + rev = "refs/tags/${version}"; + sha256 = "sha256-Xc8AbeyEtM6R5I4HdgF4XR5/b8ZYBOv34kY1xrYk/Jw="; + }; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bd7a49ef54fe..8caafd662f1f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18479,6 +18479,8 @@ with pkgs; autoreconfHook = buildPackages.autoreconfHook269; }; + hmat-oss = callPackage ../development/libraries/hmat-oss { }; + hound = callPackage ../development/tools/misc/hound { }; hpx = callPackage ../development/libraries/hpx {