1 { lib, stdenv, fetchurl, bison, mpi, flex, zlib}:
3 stdenv.mkDerivation rec {
6 src_name = "scotch_${version}";
8 buildInputs = [ bison mpi flex zlib ];
11 url = "https://gforge.inria.fr/frs/download.php/file/34618/${src_name}.tar.gz";
12 sha256 = "sha256-OQUvWf9HSkppzvwlzzyvhClACIneugEO5kA8oYj4sxE=";
15 sourceRoot = "${src_name}/src";
18 ln -s Make.inc/Makefile.inc.x86-64_pc_linux2 Makefile.inc
21 buildFlags = [ "scotch ptscotch" ];
22 installFlags = [ "prefix=\${out}" ];
25 description = "Graph and mesh/hypergraph partitioning, graph clustering, and sparse matrix ordering";
27 Scotch is a software package for graph and mesh/hypergraph partitioning, graph clustering,
28 and sparse matrix ordering.
30 homepage = "http://www.labri.fr/perso/pelegrin/scotch";
31 license = lib.licenses.cecill-c;
32 maintainers = [ lib.maintainers.bzizou ];
33 platforms = lib.platforms.linux;