diff options
author | Guilhem Saurel | 2024-09-18 12:20:46 +0200 |
---|---|---|
committer | Guilhem Saurel | 2024-09-18 23:26:13 +0200 |
commit | da033dc206c64ba954d740f7f982db5028a19cfa (patch) | |
tree | 05ce7dec6dadad5bc1b60ef01ba519f780c48939 /pkgs/by-name/pi/pinocchio/package.nix | |
parent | f048cdeba0b5112a95656e87979b168a8384d5c6 (diff) |
pinocchio: build documentation
Diffstat (limited to 'pkgs/by-name/pi/pinocchio/package.nix')
-rw-r--r-- | pkgs/by-name/pi/pinocchio/package.nix | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/pkgs/by-name/pi/pinocchio/package.nix b/pkgs/by-name/pi/pinocchio/package.nix index ff1b5cf9572f..e754078a3805 100644 --- a/pkgs/by-name/pi/pinocchio/package.nix +++ b/pkgs/by-name/pi/pinocchio/package.nix @@ -1,20 +1,22 @@ { - lib, - stdenv, - fetchFromGitHub, - casadi, - cmake, boost, - eigen, - example-robot-data, + casadi, casadiSupport ? true, + cmake, collisionSupport ? true, console-bridge, - jrl-cmakemodules, + doxygen, + eigen, + example-robot-data, + fetchFromGitHub, hpp-fcl, - urdfdom, + jrl-cmakemodules, + lib, + pkg-config, pythonSupport ? false, python3Packages, + stdenv, + urdfdom, }: stdenv.mkDerivation (finalAttrs: { @@ -28,6 +30,11 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-8V+n1TwFojXKOVkGG8k9aXVadt2NBFlZKba93L+NRNU="; }; + outputs = [ + "out" + "doc" + ]; + # test failure, ref https://github.com/stack-of-tasks/pinocchio/issues/2277 prePatch = lib.optionalString (stdenv.isLinux && stdenv.isAarch64) '' substituteInPlace unittest/algorithm/utils/CMakeLists.txt \ @@ -57,7 +64,11 @@ stdenv.mkDerivation (finalAttrs: { strictDeps = true; nativeBuildInputs = - [ cmake ] + [ + cmake + doxygen + pkg-config + ] ++ lib.optionals pythonSupport [ python3Packages.python python3Packages.pythonImportsCheckHook @@ -89,6 +100,7 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "BUILD_WITH_LIBPYTHON" pythonSupport) (lib.cmakeBool "BUILD_WITH_CASADI_SUPPORT" casadiSupport) (lib.cmakeBool "BUILD_WITH_COLLISION_SUPPORT" collisionSupport) + (lib.cmakeBool "INSTALL_DOCUMENTATION" true) ]; doCheck = true; |