Skip to content

Commit ca45dcc

Browse files
committed
python: mc-rtc
1 parent 5f4aeb1 commit ca45dcc

3 files changed

Lines changed: 28 additions & 12 deletions

File tree

pkgs/mc-rtc/mc-rtc-common.nix

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44

55
let
66
version = "2.14.1";
7+
# TODO: PR 538
78
src = fetchFromGitHub {
8-
owner = "jrl-umi3218";
9+
owner = "Kooolkimooov";
910
repo = "mc_rtc";
10-
rev = "d1bb28f9bfab85a04ce1ff103289676cfa5bf4fc";
11-
hash = "sha256-a8Wh5Xhvs+vM7k0uEJzSDCSUOK58AJSRSJx3XyboHO0=";
11+
rev = "2846f365824531f162635323d0c32796842e02a8";
12+
hash = "sha256-zTxxZOZCwlMGrRGG8B9kRLJcCvXLvYSigej8yDpihwg=";
1213
};
1314
in
1415
{

pkgs/mc-rtc/mc-rtc.nix

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
libtool,
1616
geos,
1717
spdlog,
18+
fmt,
1819
ndcurves,
1920
mc-rtc-data,
2021
state-observation,
@@ -23,9 +24,8 @@
2324
rapidjson,
2425
boost,
2526
mesh-sampling,
26-
python313Packages,
27+
python3Packages,
2728
qt5,
28-
eigen-fmt,
2929
doxygen,
3030
bundler, # Ruby for bundle dependencies
3131
with-ros ? false,
@@ -61,6 +61,10 @@ in
6161
pkg-config
6262
jrl-cmakemodules
6363
qt5.wrapQtAppsHook
64+
python3Packages.distutils
65+
python3Packages.pytest
66+
python3Packages.cython
67+
python3Packages.python
6468
]
6569
++ [
6670
# for documentation
@@ -83,13 +87,16 @@ in
8387
rapidjson
8488
boost
8589
mesh-sampling
86-
eigen-fmt
87-
]
88-
++ [
89-
python313Packages.gitpython
90-
python313Packages.pyqt5
91-
python313Packages.matplotlib
90+
fmt
91+
python3Packages.tasks
9292
]
93+
++
94+
# for python utils (mc_rtc_new_fsm_controller, mc_log_ui, etc)
95+
[
96+
python3Packages.gitpython
97+
python3Packages.pyqt5
98+
python3Packages.matplotlib
99+
]
93100
++ lib.optional (with-ros && rclcpp != null) rclcpp
94101
++ lib.optional (with-ros && nav-msgs != null) nav-msgs
95102
++ lib.optional (with-ros && sensor-msgs != null) sensor-msgs
@@ -106,7 +113,6 @@ in
106113
cmakeFlags = [
107114
"-DBUILD_MC_RTC_PYTHON_UTILS=ON"
108115
"-DBUILD_TESTING=OFF"
109-
"-DPYTHON_BINDING=OFF"
110116
"-DINSTALL_DOCUMENTATION=ON"
111117
];
112118

py-pkgs/mc-rtc.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
toPythonModule,
3+
pkgs,
4+
}:
5+
toPythonModule (
6+
pkgs.mc-rtc.override {
7+
inherit (pkgs) python3Packages;
8+
}
9+
)

0 commit comments

Comments
 (0)