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
89 lines
2.2 KiB
Nix
89 lines
2.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchpatch2,
|
|
cmake,
|
|
numactl,
|
|
mpi,
|
|
sparsehash,
|
|
onetbb,
|
|
gtest,
|
|
mpiCheckPhaseHook,
|
|
}:
|
|
let
|
|
kassert-src = fetchFromGitHub {
|
|
owner = "kamping-site";
|
|
repo = "kassert";
|
|
rev = "988b7d54b79ae6634f2fcc53a0314fb1cf2c6a23";
|
|
|
|
fetchSubmodules = true;
|
|
hash = "sha256-CBglUfVl9lgEa1t95G0mG4CCj0OWnIBwk7ep62rwIAA=";
|
|
};
|
|
|
|
kagen-src = fetchFromGitHub {
|
|
owner = "KarlsruheGraphGeneration";
|
|
repo = "KaGen";
|
|
rev = "70386f48e513051656f020360c482ce6bff9a24f";
|
|
|
|
fetchSubmodules = true;
|
|
hash = "sha256-5EvRPpjUZpmAIEgybXjNU/mO0+gsAyhlwbT+syDUr48=";
|
|
};
|
|
in
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "kaminpar";
|
|
version = "3.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KaHIP";
|
|
repo = "KaMinPar";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-1azBj1DSEb7b8u+S51Sncn6EVMgu+SuFJcK4QVVhRk4=";
|
|
};
|
|
|
|
patches = [
|
|
# require gtest to be preinstalled by default if building tests
|
|
(fetchpatch2 {
|
|
url = "https://github.com/KaHip/KaMinPar/commit/9cb9883eea076d11cffcf4b0d14bf1f4f95a00e4.patch?full_index=1";
|
|
hash = "sha256-aUO5E0HTZqjfu5BUzyRdSZgyQYcE4PGqZaJvLD40sn8=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isLinux numactl;
|
|
|
|
propagatedBuildInputs = [
|
|
mpi
|
|
sparsehash
|
|
onetbb
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
|
|
(lib.cmakeBool "KAMINPAR_BUILD_DISTRIBUTED" true)
|
|
(lib.cmakeBool "KAMINPAR_BUILD_WITH_MTUNE_NATIVE" false)
|
|
(lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_KASSERT" "${kassert-src}")
|
|
(lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_KAGEN" "${kagen-src}")
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
nativeCheckInputs = [
|
|
gtest
|
|
mpiCheckPhaseHook
|
|
];
|
|
|
|
meta = {
|
|
description = "Parallel heuristic solver for the balanced k-way graph partitioning problem";
|
|
homepage = "https://github.com/KaHIP/KaMinPar";
|
|
changelog = "https://github.com/KaHIP/KaMinPar/releases/tag/v${finalAttrs.version}";
|
|
mainProgram = "KaMinPar";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ dsalwasser ];
|
|
};
|
|
})
|