8 , pythonSupport ? false
12 stdenv.mkDerivation (finalAttrs: {
16 src = fetchFromGitHub {
18 repo = finalAttrs.pname;
19 rev = "v${finalAttrs.version}";
20 fetchSubmodules = true;
21 hash = "sha256-h7rzLSvmWOZCP8rvmUEhFeMEiPhojfbvkt+fNKpgoXo=";
30 propagatedBuildInputs = lib.optionals (!pythonSupport) [
33 ] ++ lib.optionals pythonSupport [
34 python3Packages.example-robot-data
35 python3Packages.pinocchio
38 cmakeFlags = lib.optionals (!pythonSupport) [
39 "-DBUILD_EXAMPLES=OFF"
40 "-DBUILD_PYTHON_INTERFACE=OFF"
45 examples/CMakeLists.txt \
46 examples/log/check_logfiles.sh \
47 --replace /bin/bash ${stdenv.shell}
51 pythonImportsCheck = [
54 checkInputs = lib.optionals (pythonSupport) [
59 description = "Crocoddyl optimal control library";
60 homepage = "https://github.com/loco-3d/crocoddyl";
61 license = licenses.bsd3;
62 maintainers = with maintainers; [ nim65s wegank ];
63 platforms = platforms.unix;