Files
nixpkgs/pkgs/by-name/hy/hypre/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1010 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
mpi,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hypre";
version = "2.33.0";
src = fetchFromGitHub {
owner = "hypre-space";
repo = "hypre";
tag = "v${finalAttrs.version}";
hash = "sha256-OrpClN9xd+8DdELVnI4xBg3Ih/BaoBiO0w/QrFjUclw=";
};
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 ];
};
})