pinocchio: disable collision support on darwin
This commit is contained in:
parent
94924be141
commit
35360ba7fb
|
@ -4,6 +4,7 @@
|
||||||
, cmake
|
, cmake
|
||||||
, boost
|
, boost
|
||||||
, eigen
|
, eigen
|
||||||
|
, collisionSupport ? !stdenv.isDarwin
|
||||||
, hpp-fcl
|
, hpp-fcl
|
||||||
, urdfdom
|
, urdfdom
|
||||||
, pythonSupport ? false
|
, pythonSupport ? false
|
||||||
|
@ -39,22 +40,28 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
] ++ lib.optionals (!pythonSupport) [
|
] ++ lib.optionals (!pythonSupport) [
|
||||||
boost
|
boost
|
||||||
eigen
|
eigen
|
||||||
|
] ++ lib.optionals (!pythonSupport && collisionSupport) [
|
||||||
hpp-fcl
|
hpp-fcl
|
||||||
] ++ lib.optionals pythonSupport [
|
] ++ lib.optionals pythonSupport [
|
||||||
python3Packages.boost
|
python3Packages.boost
|
||||||
python3Packages.eigenpy
|
python3Packages.eigenpy
|
||||||
|
] ++ lib.optionals (pythonSupport && collisionSupport) [
|
||||||
python3Packages.hpp-fcl
|
python3Packages.hpp-fcl
|
||||||
];
|
];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = lib.optionals collisionSupport [
|
||||||
"-DBUILD_WITH_COLLISION_SUPPORT=ON"
|
"-DBUILD_WITH_COLLISION_SUPPORT=ON"
|
||||||
] ++ lib.optionals (pythonSupport) [
|
] ++ lib.optionals pythonSupport [
|
||||||
"-DBUILD_WITH_LIBPYTHON=ON"
|
"-DBUILD_WITH_LIBPYTHON=ON"
|
||||||
|
] ++ lib.optionals (pythonSupport && stdenv.isDarwin) [
|
||||||
|
# AssertionError: '.' != '/tmp/nix-build-pinocchio-2.6.20.drv/sou[84 chars].dae'
|
||||||
|
"-DCMAKE_CTEST_ARGUMENTS='--exclude-regex;test-py-bindings_geometry_model_urdf'"
|
||||||
] ++ lib.optionals (!pythonSupport) [
|
] ++ lib.optionals (!pythonSupport) [
|
||||||
"-DBUILD_PYTHON_INTERFACE=OFF"
|
"-DBUILD_PYTHON_INTERFACE=OFF"
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
pythonImportsCheck = lib.optionals (!pythonSupport) [
|
pythonImportsCheck = lib.optionals (!pythonSupport) [
|
||||||
"pinocchio"
|
"pinocchio"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue