2024-08-26 17:21:58 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
doxygen,
|
|
|
|
boost,
|
|
|
|
eigen,
|
|
|
|
assimp,
|
|
|
|
octomap,
|
|
|
|
qhull,
|
|
|
|
pythonSupport ? false,
|
|
|
|
python3Packages,
|
|
|
|
zlib,
|
2023-05-19 13:26:14 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "hpp-fcl";
|
2024-07-29 23:24:02 +00:00
|
|
|
version = "2.4.5";
|
2023-05-19 13:26:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "humanoid-path-planner";
|
2024-07-13 00:07:20 +00:00
|
|
|
repo = "hpp-fcl";
|
2023-05-19 13:26:14 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
fetchSubmodules = true;
|
2024-07-29 23:24:02 +00:00
|
|
|
hash = "sha256-0OORdtT7vMpvK3BPJvtvuLcz0+bfu1+nVvzs3y+LyQw=";
|
2023-05-19 13:26:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
2024-09-18 08:19:22 +00:00
|
|
|
nativeBuildInputs =
|
|
|
|
[
|
|
|
|
cmake
|
|
|
|
doxygen
|
|
|
|
]
|
|
|
|
++ lib.optionals pythonSupport [
|
|
|
|
python3Packages.numpy
|
|
|
|
python3Packages.pythonImportsCheckHook
|
|
|
|
];
|
2023-05-19 13:26:14 +00:00
|
|
|
|
2024-08-26 17:21:58 +00:00
|
|
|
propagatedBuildInputs =
|
|
|
|
[
|
|
|
|
assimp
|
|
|
|
qhull
|
|
|
|
octomap
|
|
|
|
zlib
|
|
|
|
]
|
|
|
|
++ lib.optionals (!pythonSupport) [
|
|
|
|
boost
|
|
|
|
eigen
|
|
|
|
]
|
|
|
|
++ lib.optionals pythonSupport [
|
|
|
|
python3Packages.boost
|
|
|
|
python3Packages.eigenpy
|
|
|
|
];
|
2023-05-19 13:26:14 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
2024-08-26 17:20:36 +00:00
|
|
|
(lib.cmakeBool "HPP_FCL_HAS_QHULL" true)
|
|
|
|
(lib.cmakeBool "INSTALL_DOCUMENTATION" true)
|
|
|
|
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" pythonSupport)
|
2023-05-19 13:26:14 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2024-09-17 13:49:24 +00:00
|
|
|
pythonImportsCheck = [ "hppfcl" ];
|
2023-05-19 13:26:14 +00:00
|
|
|
|
2024-08-26 17:21:58 +00:00
|
|
|
outputs = [
|
|
|
|
"dev"
|
|
|
|
"out"
|
|
|
|
"doc"
|
|
|
|
];
|
2024-03-07 11:02:45 +00:00
|
|
|
postFixup = ''
|
|
|
|
moveToOutput share/ament_index "$dev"
|
|
|
|
moveToOutput share/${finalAttrs.pname} "$dev"
|
|
|
|
'';
|
|
|
|
|
2024-08-26 20:32:22 +00:00
|
|
|
meta = {
|
2023-05-19 13:26:14 +00:00
|
|
|
description = "Extension of the Flexible Collision Library";
|
|
|
|
homepage = "https://github.com/humanoid-path-planner/hpp-fcl";
|
2024-08-26 20:32:22 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ nim65s ];
|
2024-09-17 13:49:36 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2023-05-19 13:26:14 +00:00
|
|
|
};
|
|
|
|
})
|