mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
6dba41fbcb
Use the attribute mpi to provide a system wide default MPI implementation. The default is openmpi (as before). This now allows for overriding the MPI implentation by using the overlay mechanism. Build all packages with mpich instead of the default openmpi can now be achived like this: self: super: { mpi = super.mpich; } All derivations that have been using "mpi ? null" to provide optional building with MPI have been change in the following way to allow for optional builds with MPI: { ... , mpi , useMpi ? false }
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{ lib, stdenv, fetchurl, bison, mpi, flex, zlib}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "6.0.4";
|
|
pname = "scotch";
|
|
src_name = "scotch_${version}";
|
|
|
|
buildInputs = [ bison mpi flex zlib ];
|
|
|
|
src = fetchurl {
|
|
url = "https://gforge.inria.fr/frs/download.php/file/34618/${src_name}.tar.gz";
|
|
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 = ''
|
|
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;
|
|
};
|
|
}
|
|
|