nixpkgs/pkgs/by-name/sc/scotch/package.nix
Guilhem Saurel 7788dbb2e5 scotch: also install libesmumps for mumps
while here, update packaging to CMake, and build on darwin
2024-08-08 00:26:49 +02:00

52 lines
958 B
Nix

{
bison,
bzip2,
cmake,
fetchFromGitLab,
flex,
gfortran,
lib,
mpi,
stdenv,
zlib,
xz,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "scotch";
version = "7.0.4";
src = fetchFromGitLab {
domain = "gitlab.inria.fr";
owner = "scotch";
repo = "scotch";
rev = "v${finalAttrs.version}";
hash = "sha256-uaox4Q9pTF1r2BZjvnU2LE6XkZw3x9mGSKLdRVUobGU=";
};
nativeBuildInputs = [
cmake
gfortran
];
buildInputs = [
bison
bzip2
mpi
flex
xz
zlib
];
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 ];
};
})