2024-08-17 16:16:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
clipper2,
|
|
|
|
gtest,
|
|
|
|
glm,
|
|
|
|
tbb_2021_11,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "manifold";
|
2024-11-10 19:35:44 +00:00
|
|
|
version = "2.5.1-unstable-2024-11-08";
|
2024-08-17 16:16:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elalish";
|
|
|
|
repo = "manifold";
|
2024-11-10 19:35:44 +00:00
|
|
|
rev = "66bca6e3fdfce0f590ca84edc1a6256502636f4b";
|
|
|
|
hash = "sha256-XgmJtkBf5SOgvtwU2x1cJLjEQKEmKnB40oIaoYrUYEQ=";
|
2024-08-17 16:16:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtest
|
|
|
|
glm
|
|
|
|
tbb_2021_11
|
|
|
|
clipper2
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
|
|
"-DMANIFOLD_TEST=ON"
|
2024-09-05 14:58:24 +00:00
|
|
|
"-DMANIFOLD_CROSS_SECTION=ON"
|
2024-08-17 16:16:46 +00:00
|
|
|
"-DMANIFOLD_PAR=TBB"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
|
|
test/manifold_test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Geometry library for topological robustness";
|
|
|
|
homepage = "https://github.com/elalish/manifold";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
hzeller
|
|
|
|
pca006132
|
|
|
|
];
|
2024-09-16 04:51:23 +00:00
|
|
|
platforms = lib.platforms.linux; # currently issues with Darwin
|
2024-08-17 16:16:46 +00:00
|
|
|
};
|
|
|
|
})
|