blob: 7a93705cd914071e76691fc30c0665561c684d85 (
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
48
49
50
|
{
lib,
stdenv,
fetchFromGitLab,
bison,
mpi,
flex,
zlib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "scotch";
version = "6.1.1";
buildInputs = [
bison
mpi
flex
zlib
];
src = fetchFromGitLab {
domain = "gitlab.inria.fr";
owner = "scotch";
repo = "scotch";
rev = "v${finalAttrs.version}";
hash = "sha256-GUV6s+P56OAJq9AMe+LZOMPICQO/RuIi+hJAecmO5Wc=";
};
preConfigure = ''
cd src
ln -s Make.inc/Makefile.inc.x86-64_pc_linux2 Makefile.inc
'';
buildFlags = [ "scotch ptscotch" ];
installFlags = [ "prefix=\${out}" ];
meta = {
description = "Graph and mesh/hypergraph partitioning, graph clustering, and sparse matrix ordering";
longDescription = ''
Scotch is a software package for graph and mesh/hypergraph partitioning, graph clustering,
and sparse matrix ordering.
'';
homepage = "http://www.labri.fr/perso/pelegrin/scotch";
license = lib.licenses.cecill-c;
maintainers = [ lib.maintainers.bzizou ];
platforms = lib.platforms.linux;
};
})
|