Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
97 lines
2.1 KiB
Nix
97 lines
2.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
cmake,
|
|
gfortran,
|
|
bison,
|
|
flex,
|
|
bzip2,
|
|
xz,
|
|
zlib,
|
|
mpi,
|
|
withPtScotch ? false,
|
|
testers,
|
|
pkgsMusl ? { }, # default to empty set to avoid CI fails with allowVariants = false
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "scotch";
|
|
version = "7.0.10";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.inria.fr";
|
|
owner = "scotch";
|
|
repo = "scotch";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-qeMgTkoM/RDsZa0T6hmrDLbLuSeR8WNxllyHSlkMVzA=";
|
|
};
|
|
|
|
outputs = [
|
|
"bin"
|
|
"dev"
|
|
"out"
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
|
|
(lib.cmakeBool "BUILD_PTSCOTCH" withPtScotch)
|
|
# Prefix Scotch version of MeTiS routines
|
|
(lib.cmakeBool "SCOTCH_METIS_PREFIX" true)
|
|
# building tests is broken with SCOTCH_METIS_PREFIX enabled, at least since 7.0.9
|
|
(lib.cmakeBool "ENABLE_TESTS" false)
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
gfortran
|
|
bison
|
|
flex
|
|
];
|
|
|
|
buildInputs = [
|
|
bzip2
|
|
xz
|
|
zlib
|
|
];
|
|
|
|
propagatedBuildInputs = lib.optionals withPtScotch [
|
|
mpi
|
|
];
|
|
|
|
# SCOTCH provide compatibility with Metis/Parmetis interface.
|
|
# We install the metis compatible headers to subdirectory to
|
|
# avoid conflict with metis/parmetis.
|
|
postFixup = ''
|
|
mkdir -p $dev/include/scotch
|
|
mv $dev/include/{*metis,metisf}.h $dev/include/scotch
|
|
'';
|
|
|
|
passthru = {
|
|
tests = {
|
|
cmake-config = testers.hasCmakeConfigModules {
|
|
moduleNames = [ "SCOTCH" ];
|
|
package = finalAttrs.finalPackage;
|
|
};
|
|
musl = pkgsMusl.scotch or null;
|
|
};
|
|
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
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 = with lib.maintainers; [
|
|
bzizou
|
|
qbisi
|
|
];
|
|
};
|
|
})
|