2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, bison, mpi, flex, zlib}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "6.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "scotch";
|
|
|
|
src_name = "scotch_${version}";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = [ bison mpi flex zlib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://gforge.inria.fr/frs/download.php/file/34618/${src_name}.tar.gz";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-OQUvWf9HSkppzvwlzzyvhClACIneugEO5kA8oYj4sxE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "${src_name}/src";
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
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 = ''
|
2021-01-17 00:15:33 +00:00
|
|
|
Scotch is a software package for graph and mesh/hypergraph partitioning, graph clustering,
|
2020-04-24 23:36:52 +00:00
|
|
|
and sparse matrix ordering.
|
|
|
|
'';
|
|
|
|
homepage = "http://www.labri.fr/perso/pelegrin/scotch";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.cecill-c;
|
|
|
|
maintainers = [ lib.maintainers.bzizou ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|