crocoddyl, python3Packages.crocoddyl: init at 1.9.0

This commit is contained in:
Weijia Wang 2022-12-08 01:11:44 +01:00
parent 2192f88c20
commit 561083d21b
3 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, example-robot-data
, pinocchio
, pythonSupport ? false
, python3Packages
}:
stdenv.mkDerivation rec {
pname = "crocoddyl";
version = "1.9.0";
src = fetchFromGitHub {
owner = "loco-3d";
repo = pname;
rev = "v${version}";
sha256 = "sha256-IQ+8ZZXVTTRFa4uGetpylRab4P9MSTU2YtytYA3z6ys=";
fetchSubmodules = true;
};
strictDeps = true;
nativeBuildInputs = [
cmake
];
propagatedBuildInputs = lib.optionals (!pythonSupport) [
example-robot-data
pinocchio
] ++ lib.optionals pythonSupport [
python3Packages.example-robot-data
python3Packages.pinocchio
];
cmakeFlags = lib.optionals (!pythonSupport) [
"-DBUILD_EXAMPLES=OFF"
"-DBUILD_PYTHON_INTERFACE=OFF"
];
meta = with lib; {
description = "Crocoddyl optimal control library";
homepage = "https://github.com/loco-3d/crocoddyl";
license = licenses.bsd3;
maintainers = with maintainers; [ wegank ];
platforms = platforms.unix;
};
}

View File

@ -18765,6 +18765,8 @@ with pkgs;
croaring = callPackage ../development/libraries/croaring { };
crocoddyl = callPackage ../development/libraries/crocoddyl { };
crossguid = callPackage ../development/libraries/crossguid { };
cryptopp = callPackage ../development/libraries/crypto++ { };

View File

@ -2020,6 +2020,11 @@ self: super: with self; {
criticality-score = callPackage ../development/python-modules/criticality-score { };
crocoddyl = toPythonModule (callPackage ../development/libraries/crocoddyl {
pythonSupport = true;
python3Packages = self;
});
cron-descriptor = callPackage ../development/python-modules/cron-descriptor { };
croniter = callPackage ../development/python-modules/croniter { };