2021-01-10 13:40:19 +01:00
|
|
|
{ lib, stdenv, fetchurl, bison, mpi, flex, zlib}:
|
2016-03-18 10:16:31 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "6.0.4";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "scotch";
|
2016-03-18 10:16:31 +01:00
|
|
|
src_name = "scotch_${version}";
|
|
|
|
|
2021-01-10 13:40:19 +01:00
|
|
|
buildInputs = [ bison mpi flex zlib ];
|
2016-03-18 10:16:31 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://gforge.inria.fr/frs/download.php/file/34618/${src_name}.tar.gz";
|
2016-03-18 10:16:31 +01:00
|
|
|
sha256 = "f53f4d71a8345ba15e2dd4e102a35fd83915abf50ea73e1bf6efe1bc2b4220c7";
|
|
|
|
};
|
|
|
|
|
|
|
|
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-15 14:21:58 +01:00
|
|
|
Scotch is a software package for graph and mesh/hypergraph partitioning, graph clustering,
|
2016-03-18 10:16:31 +01:00
|
|
|
and sparse matrix ordering.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.labri.fr/perso/pelegrin/scotch";
|
2021-01-15 14:21:58 +01:00
|
|
|
license = lib.licenses.cecill-c;
|
|
|
|
maintainers = [ lib.maintainers.bzizou ];
|
|
|
|
platforms = lib.platforms.linux;
|
2016-03-18 10:16:31 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|