manifold: init at 2.5.1-unstable-2024-08-18
This commit is contained in:
parent
a5c67311d9
commit
c2d1d1383a
53
pkgs/by-name/ma/manifold/package.nix
Normal file
53
pkgs/by-name/ma/manifold/package.nix
Normal 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
|
||||
];
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user