mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
84 lines
1.6 KiB
Nix
84 lines
1.6 KiB
Nix
{
|
|
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;
|
|
|
|
nativeBuildInputs =
|
|
[
|
|
cmake
|
|
doxygen
|
|
]
|
|
++ lib.optionals pythonSupport [
|
|
python3Packages.numpy
|
|
python3Packages.pythonImportsCheckHook
|
|
];
|
|
|
|
propagatedBuildInputs =
|
|
[
|
|
assimp
|
|
qhull
|
|
octomap
|
|
zlib
|
|
]
|
|
++ lib.optionals (!pythonSupport) [
|
|
boost
|
|
eigen
|
|
]
|
|
++ lib.optionals pythonSupport [
|
|
python3Packages.boost
|
|
python3Packages.eigenpy
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "HPP_FCL_HAS_QHULL" true)
|
|
(lib.cmakeBool "INSTALL_DOCUMENTATION" true)
|
|
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" pythonSupport)
|
|
];
|
|
|
|
doCheck = true;
|
|
pythonImportsCheck = [ "hppfcl" ];
|
|
|
|
outputs = [
|
|
"dev"
|
|
"out"
|
|
"doc"
|
|
];
|
|
postFixup = ''
|
|
moveToOutput share/ament_index "$dev"
|
|
moveToOutput share/${finalAttrs.pname} "$dev"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Extension of the Flexible Collision Library";
|
|
homepage = "https://github.com/humanoid-path-planner/hpp-fcl";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ nim65s ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|