python3Packages.pinocchio: fix viser example

This commit is contained in:
Guilhem Saurel
2025-09-27 10:43:01 +02:00
parent 42d6342679
commit 603a9133f7

View File

@@ -10,6 +10,7 @@
eigen,
example-robot-data,
fetchFromGitHub,
fetchpatch,
coal,
jrl-cmakemodules,
lib,
@@ -34,6 +35,15 @@ stdenv.mkDerivation (finalAttrs: {
"doc"
];
patches = [
# ref. https://github.com/stack-of-tasks/pinocchio/pull/2771
(fetchpatch {
name = "fix-viser-path.patch";
url = "https://github.com/stack-of-tasks/pinocchio/commit/36a04bddb6980a7bcd28ebcc55d4e442f7920d87.patch";
hash = "sha256-9oENiMmRqJLU4ZiyGojm7suqdwTDGfk56aS2kcZiGaI=";
})
];
postPatch = ''
# allow package:// uri use in examples
export ROS_PACKAGE_PATH=${example-robot-data}/share