Merge pull request #335412 from hzeller/feature-20240817-init-manifold

manifold: init at 2.5.1-unstable-2024-08-18
This commit is contained in:
7c6f434c 2024-08-20 16:38:07 +00:00 committed by GitHub
commit aecf90500e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,53 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
clipper2,
gtest,
glm,
tbb_2021_11,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "manifold";
version = "2.5.1-unstable-2024-08-18";
src = fetchFromGitHub {
owner = "elalish";
repo = "manifold";
rev = "74e15b1574ebe6ae01d1fd2cffbe75aeeb7b8fab";
hash = "sha256-T/uaiHNJvk16XobjJlVbawKJ2ktFaCtI63kTFc6Z5Fc=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [
gtest
glm
tbb_2021_11
clipper2
];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DBUILD_SHARED_LIBS=ON"
"-DMANIFOLD_TEST=ON"
"-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
];
};
})