nixpkgs/pkgs/by-name/hp/hpp-fcl/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

84 lines
1.6 KiB
Nix
Raw Normal View History

2024-08-26 17:21:58 +00:00
{
lib,
stdenv,
fetchFromGitHub,
cmake,
doxygen,
boost,
eigen,
assimp,
octomap,
qhull,
pythonSupport ? false,
python3Packages,
zlib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hpp-fcl";
version = "2.4.5";
src = fetchFromGitHub {
owner = "humanoid-path-planner";
repo = "hpp-fcl";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-0OORdtT7vMpvK3BPJvtvuLcz0+bfu1+nVvzs3y+LyQw=";
};
strictDeps = true;
2024-09-18 08:19:22 +00:00
nativeBuildInputs =
[
cmake
doxygen
]
++ lib.optionals pythonSupport [
python3Packages.numpy
python3Packages.pythonImportsCheckHook
];
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
];
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)
];
doCheck = true;
2024-09-17 13:49:24 +00:00
pythonImportsCheck = [ "hppfcl" ];
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 = {
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;
};
})