lol

Merge pull request #205067 from wegank/crocoddyl-init

authored by

Sandro and committed by
GitHub
6b8791b6 0b3e6d0e

+215
+49
pkgs/development/libraries/crocoddyl/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + , example-robot-data 6 + , pinocchio 7 + , pythonSupport ? false 8 + , python3Packages 9 + }: 10 + 11 + stdenv.mkDerivation rec { 12 + pname = "crocoddyl"; 13 + version = "1.9.0"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "loco-3d"; 17 + repo = pname; 18 + rev = "v${version}"; 19 + sha256 = "sha256-IQ+8ZZXVTTRFa4uGetpylRab4P9MSTU2YtytYA3z6ys="; 20 + fetchSubmodules = true; 21 + }; 22 + 23 + strictDeps = true; 24 + 25 + nativeBuildInputs = [ 26 + cmake 27 + ]; 28 + 29 + propagatedBuildInputs = lib.optionals (!pythonSupport) [ 30 + example-robot-data 31 + pinocchio 32 + ] ++ lib.optionals pythonSupport [ 33 + python3Packages.example-robot-data 34 + python3Packages.pinocchio 35 + ]; 36 + 37 + cmakeFlags = lib.optionals (!pythonSupport) [ 38 + "-DBUILD_EXAMPLES=OFF" 39 + "-DBUILD_PYTHON_INTERFACE=OFF" 40 + ]; 41 + 42 + meta = with lib; { 43 + description = "Crocoddyl optimal control library"; 44 + homepage = "https://github.com/loco-3d/crocoddyl"; 45 + license = licenses.bsd3; 46 + maintainers = with maintainers; [ wegank ]; 47 + platforms = platforms.unix; 48 + }; 49 + }
+42
pkgs/development/libraries/example-robot-data/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + , pythonSupport ? false 6 + , python3Packages 7 + }: 8 + 9 + stdenv.mkDerivation rec { 10 + pname = "example-robot-data"; 11 + version = "4.0.3"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "Gepetto"; 15 + repo = pname; 16 + rev = "v${version}"; 17 + fetchSubmodules = true; 18 + sha256 = "sha256-rxVyka8tcF/CmGTVNyh3FPR1LVa6JOAN+9zjElgqCak="; 19 + }; 20 + 21 + strictDeps = true; 22 + 23 + nativeBuildInputs = [ 24 + cmake 25 + ]; 26 + 27 + buildInputs = lib.optionals pythonSupport [ 28 + python3Packages.pinocchio 29 + ]; 30 + 31 + cmakeFlags = lib.optionals (!pythonSupport) [ 32 + "-DBUILD_PYTHON_INTERFACE=OFF" 33 + ]; 34 + 35 + meta = with lib; { 36 + description = "Set of robot URDFs for benchmarking and developed examples."; 37 + homepage = "https://github.com/Gepetto/example-robot-data"; 38 + license = licenses.bsd3; 39 + maintainers = with maintainers; [ wegank ]; 40 + platforms = platforms.unix; 41 + }; 42 + }
+57
pkgs/development/libraries/pinocchio/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + , boost 6 + , eigen 7 + , urdfdom 8 + , pythonSupport ? false 9 + , python3Packages 10 + }: 11 + 12 + stdenv.mkDerivation rec { 13 + pname = "pinocchio"; 14 + version = "2.6.12"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "stack-of-tasks"; 18 + repo = pname; 19 + rev = "v${version}"; 20 + fetchSubmodules = true; 21 + sha256 = "sha256-DJX/njNX8l7ngSl3yCeN7ZoQaH65pQTsZrKwmY7EZ+E="; 22 + }; 23 + 24 + # error: use of undeclared identifier '__sincos' 25 + postPatch = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) '' 26 + substituteInPlace src/math/sincos.hpp \ 27 + --replace "__APPLE__" "0" 28 + ''; 29 + 30 + strictDeps = true; 31 + 32 + nativeBuildInputs = [ 33 + cmake 34 + ]; 35 + 36 + propagatedBuildInputs = [ 37 + urdfdom 38 + ] ++ lib.optionals (!pythonSupport) [ 39 + boost 40 + eigen 41 + ] ++ lib.optionals pythonSupport [ 42 + python3Packages.boost 43 + python3Packages.eigenpy 44 + ]; 45 + 46 + cmakeFlags = lib.optionals (!pythonSupport) [ 47 + "-DBUILD_PYTHON_INTERFACE=OFF" 48 + ]; 49 + 50 + meta = with lib; { 51 + description = "A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives"; 52 + homepage = "https://github.com/stack-of-tasks/pinocchio"; 53 + license = licenses.bsd2; 54 + maintainers = with maintainers; [ wegank ]; 55 + platforms = platforms.unix; 56 + }; 57 + }
+44
pkgs/development/python-modules/eigenpy/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + , boost 6 + , eigen 7 + , numpy 8 + }: 9 + 10 + stdenv.mkDerivation rec { 11 + pname = "eigenpy"; 12 + version = "2.8.1"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "stack-of-tasks"; 16 + repo = pname; 17 + rev = "v${version}"; 18 + fetchSubmodules = true; 19 + sha256 = "sha256-nofB5TDvEArhPcYe/Pb1LQBC+W6MrE3NuapaZmKIO68="; 20 + }; 21 + 22 + strictDeps = true; 23 + 24 + nativeBuildInputs = [ 25 + cmake 26 + ]; 27 + 28 + buildInputs = [ 29 + boost 30 + ]; 31 + 32 + propagatedBuildInputs = [ 33 + eigen 34 + numpy 35 + ]; 36 + 37 + meta = with lib; { 38 + description = "Bindings between Numpy and Eigen using Boost.Python"; 39 + homepage = "https://github.com/stack-of-tasks/eigenpy"; 40 + license = licenses.bsd2; 41 + maintainers = with maintainers; [ wegank ]; 42 + platforms = platforms.unix; 43 + }; 44 + }
+6
pkgs/top-level/all-packages.nix
··· 18786 18786 18787 18787 croaring = callPackage ../development/libraries/croaring { }; 18788 18788 18789 + crocoddyl = callPackage ../development/libraries/crocoddyl { }; 18790 + 18789 18791 crossguid = callPackage ../development/libraries/crossguid { }; 18790 18792 18791 18793 cryptopp = callPackage ../development/libraries/crypto++ { }; ··· 18956 18958 libesmtp = callPackage ../development/libraries/libesmtp { }; 18957 18959 18958 18960 liberasurecode = callPackage ../applications/misc/liberasurecode { }; 18961 + 18962 + example-robot-data = callPackage ../development/libraries/example-robot-data { }; 18959 18963 18960 18964 exiv2 = callPackage ../development/libraries/exiv2 { }; 18961 18965 ··· 22050 22054 physfs; 22051 22055 22052 22056 pico-sdk = callPackage ../development/libraries/pico-sdk { }; 22057 + 22058 + pinocchio = callPackage ../development/libraries/pinocchio { }; 22053 22059 22054 22060 pipelight = callPackage ../tools/misc/pipelight { 22055 22061 stdenv = stdenv_32bit;
+17
pkgs/top-level/python-packages.nix
··· 2028 2028 2029 2029 criticality-score = callPackage ../development/python-modules/criticality-score { }; 2030 2030 2031 + crocoddyl = toPythonModule (callPackage ../development/libraries/crocoddyl { 2032 + pythonSupport = true; 2033 + python3Packages = self; 2034 + }); 2035 + 2031 2036 cron-descriptor = callPackage ../development/python-modules/cron-descriptor { }; 2032 2037 2033 2038 croniter = callPackage ../development/python-modules/croniter { }; ··· 2897 2902 2898 2903 eggdeps = callPackage ../development/python-modules/eggdeps { }; 2899 2904 2905 + eigenpy = toPythonModule (callPackage ../development/python-modules/eigenpy { }); 2906 + 2900 2907 einops = callPackage ../development/python-modules/einops { }; 2901 2908 2902 2909 eiswarnung = callPackage ../development/python-modules/eiswarnung { }; ··· 3067 3074 evtx = callPackage ../development/python-modules/evtx { }; 3068 3075 3069 3076 ewmh = callPackage ../development/python-modules/ewmh { }; 3077 + 3078 + example-robot-data = toPythonModule (pkgs.example-robot-data.override { 3079 + pythonSupport = true; 3080 + python3Packages = self; 3081 + }); 3070 3082 3071 3083 exdown = callPackage ../development/python-modules/exdown { }; 3072 3084 ··· 6962 6974 pims = callPackage ../development/python-modules/pims { }; 6963 6975 6964 6976 pinboard = callPackage ../development/python-modules/pinboard { }; 6977 + 6978 + pinocchio = toPythonModule (pkgs.pinocchio.override { 6979 + pythonSupport = true; 6980 + python3Packages = self; 6981 + }); 6965 6982 6966 6983 pint = callPackage ../development/python-modules/pint { }; 6967 6984