hpp-fcl: nixfmt

This commit is contained in:
Guilhem Saurel
2024-08-27 00:31:54 +02:00
parent 8fdec88dd1
commit ec841f6b65
+35 -30
View File
@@ -1,16 +1,17 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, doxygen
, boost
, eigen
, assimp
, octomap
, qhull
, pythonSupport ? false
, python3Packages
, zlib
{
lib,
stdenv,
fetchFromGitHub,
cmake,
doxygen,
boost,
eigen,
assimp,
octomap,
qhull,
pythonSupport ? false,
python3Packages,
zlib,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -30,22 +31,23 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
cmake
doxygen
] ++ lib.optionals pythonSupport [
python3Packages.numpy
];
] ++ lib.optionals pythonSupport [ python3Packages.numpy ];
propagatedBuildInputs = [
assimp
qhull
octomap
zlib
] ++ lib.optionals (!pythonSupport) [
boost
eigen
] ++ lib.optionals pythonSupport [
python3Packages.boost
python3Packages.eigenpy
];
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)
@@ -60,13 +62,16 @@ stdenv.mkDerivation (finalAttrs: {
python -c "import hppfcl"
'';
outputs = [ "dev" "out" "doc" ];
outputs = [
"dev"
"out"
"doc"
];
postFixup = ''
moveToOutput share/ament_index "$dev"
moveToOutput share/${finalAttrs.pname} "$dev"
'';
meta = with lib; {
description = "Extension of the Flexible Collision Library";
homepage = "https://github.com/humanoid-path-planner/hpp-fcl";