Merge pull request #325496 from mk3z/hypre

hypre: init at 2.31.0
This commit is contained in:
Masum Reza 2024-07-09 16:53:14 +05:30 committed by GitHub
commit 6ed8c0b065
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,47 @@
{
lib,
stdenv,
fetchFromGitHub,
mpi,
}:
stdenv.mkDerivation (finalAttrs: {
name = "hypre";
version = "2.31.0";
src = fetchFromGitHub {
owner = "hypre-space";
repo = "hypre";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-eFOyM3IzQUNm7cSnORA3NrKYotEBmLKC8mi+fcwPMQA=";
};
sourceRoot = "${finalAttrs.src.name}/src";
buildInputs = [ mpi ];
configureFlags = [
"--enable-mpi"
"--enable-shared"
];
preBuild = ''
makeFlagsArray+=(AR="ar -rcu")
'';
installPhase = ''
runHook preInstall
mkdir -p $out/{include,lib}
cp -r hypre/include/* $out/include
cp -r hypre/lib/* $out/lib
runHook postInstall
'';
meta = with lib; {
description = "Parallel solvers for sparse linear systems featuring multigrid methods.";
homepage = "https://computing.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods";
platforms = platforms.unix;
license = licenses.mit;
maintainers = with maintainers; [ mkez ];
};
})