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.0 KiB
Nix
97 lines
2.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
mpi,
|
|
cgal,
|
|
sparsehash,
|
|
imagemagick,
|
|
gtest,
|
|
ctestCheckHook,
|
|
mpiCheckPhaseHook,
|
|
withExamples ? false,
|
|
testers,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "kagen";
|
|
version = "1.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KarlsruheGraphGeneration";
|
|
repo = "kagen";
|
|
tag = "v${finalAttrs.version}";
|
|
# use vendor libmorton and xxHash
|
|
fetchSubmodules = true;
|
|
hash = "sha256-2jXHHS9Siu6hXrYPIrZSOWe6D2PgsvrbMw/7Ykpc3wk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
imagemagick
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
mpi
|
|
cgal
|
|
sparsehash
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
|
|
(lib.cmakeBool "KAGEN_USE_BUNDLED_GTEST" false)
|
|
(lib.cmakeBool "KAGEN_BUILD_EXAMPLES" withExamples)
|
|
(lib.cmakeBool "KAGEN_BUILD_TESTS" finalAttrs.finalPackage.doCheck)
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
nativeCheckInputs = [
|
|
gtest
|
|
ctestCheckHook
|
|
mpiCheckPhaseHook
|
|
];
|
|
|
|
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
# flaky tests on darwin
|
|
"test_rgg2d.2cores"
|
|
"test_rgg2d.4cores"
|
|
"test_edge_weights.2cores"
|
|
"test_edge_weights.4cores"
|
|
"test_permutation.2cores"
|
|
"test_permutation.4cores"
|
|
];
|
|
|
|
passthru = {
|
|
tests = {
|
|
cmake-config = testers.hasCmakeConfigModules {
|
|
moduleNames = [ "KaGen" ];
|
|
package = finalAttrs.finalPackage;
|
|
};
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "Communication-free Massively Distributed Graph Generators";
|
|
homepage = "https://github.com/KarlsruheGraphGeneration/KaGen";
|
|
changelog = "https://github.com/KarlsruheGraphGeneration/KaGen/releases/tag/v${finalAttrs.version}";
|
|
mainProgram = "KaGen";
|
|
license = with lib.licenses; [
|
|
bsd2
|
|
mit
|
|
# boost license
|
|
lib.licenses.boost
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ qbisi ];
|
|
};
|
|
})
|