-
Notifications
You must be signed in to change notification settings - Fork 347
Expand file tree
/
Copy pathtight_inclusion.nix
More file actions
71 lines (58 loc) · 1.65 KB
/
tight_inclusion.nix
File metadata and controls
71 lines (58 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
lib,
stdenv,
fetchFromGitHub,
cmake,
eigen,
spdlog,
}:
let
cf = fetchFromGitHub {
owner = "conda-forge";
repo = "tight-inclusion-feedstock";
rev = "ad0bb48ec12aa991ae208252cdd7e61fa37bdc10";
hash = "sha256-4v6h1c2fe0DK5z/s86B7oUyUBAYXTnMHzOpBM91NEpY=";
};
in
stdenv.mkDerivation (finalAttrs: {
pname = "tight-inclusion";
version = "1.0.6";
src = fetchFromGitHub {
owner = "Continuous-Collision-Detection";
repo = "Tight-Inclusion";
tag = "v${finalAttrs.version}";
hash = "sha256-Yq79qShpA5VmPan+QV05GrGrmsoUuVFCrJDK7F207Qs=";
};
patches = [
"${cf}/recipe/patches/0001-Export-target-install-header-in-right-dir-still-need.patch"
"${cf}/recipe/patches/0002-Export-symbols-on-windows.patch"
"${cf}/recipe/patches/0003-patch-for-conda-forge-package.patch"
"${cf}/recipe/patches/0004-add-cmake-config-file-homogenize-project-name.patch"
"${cf}/recipe/patches/0005-fix-installation-of-configured-config.hpp-file.patch"
];
postPatch = ''
# we don't need the bin
substituteInPlace CMakeLists.txt \
--replace-fail \
"add_subdirectory(app)" \
""
'';
nativeBuildInputs = [
cmake
];
propagatedBuildInputs = [
eigen
spdlog
];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DTIGHT_INCLUSION_TOPLEVEL_PROJECT=ON"
];
meta = {
description = "Conservative continuous collision detection (CCD) method with support for minimum separation";
homepage = "https://github.com/Continuous-Collision-Detection/Tight-Inclusion";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nim65s ];
platforms = lib.platforms.unix;
};
})