mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
55 lines
1017 B
Nix
55 lines
1017 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
clipper2,
|
|
gtest,
|
|
glm,
|
|
tbb_2021_11,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "manifold";
|
|
version = "2.5.1-unstable-2024-09-15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elalish";
|
|
repo = "manifold";
|
|
rev = "22c66051dfdbcefa2012e30dd12c9b5a20f89a01";
|
|
hash = "sha256-Fbev5dTgXjXdC7fzWfHnypTBel++DiMns8OzN1bH1OA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
gtest
|
|
glm
|
|
tbb_2021_11
|
|
clipper2
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
"-DMANIFOLD_TEST=ON"
|
|
"-DMANIFOLD_CROSS_SECTION=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
|
|
];
|
|
platforms = lib.platforms.linux; # currently issues with Darwin
|
|
};
|
|
})
|