12 pythonSupport ? false,
17 stdenv.mkDerivation (finalAttrs: {
21 src = fetchFromGitHub {
22 owner = "humanoid-path-planner";
24 rev = "v${finalAttrs.version}";
25 fetchSubmodules = true;
26 hash = "sha256-0OORdtT7vMpvK3BPJvtvuLcz0+bfu1+nVvzs3y+LyQw=";
36 ++ lib.optionals pythonSupport [
38 python3Packages.pythonImportsCheckHook
41 propagatedBuildInputs =
48 ++ lib.optionals (!pythonSupport) [
52 ++ lib.optionals pythonSupport [
54 python3Packages.eigenpy
58 (lib.cmakeBool "HPP_FCL_HAS_QHULL" true)
59 (lib.cmakeBool "INSTALL_DOCUMENTATION" true)
60 (lib.cmakeBool "BUILD_PYTHON_INTERFACE" pythonSupport)
64 pythonImportsCheck = [ "hppfcl" ];
72 moveToOutput share/ament_index "$dev"
73 moveToOutput share/${finalAttrs.pname} "$dev"
77 description = "Extension of the Flexible Collision Library";
78 homepage = "https://github.com/humanoid-path-planner/hpp-fcl";
79 license = lib.licenses.bsd3;
80 maintainers = with lib.maintainers; [ nim65s ];
81 platforms = lib.platforms.unix;