blob: 1b5c918bee45ba774b7662a2aab95493e3c3a88b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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 ];
};
})
|