Skip to content

Conversation

@arntanguy
Copy link
Collaborator

@arntanguy arntanguy commented Nov 26, 2025

#494 made it possible to build mc_rtc itself with nixpkg. This PR is a follow-up with subsequent fixes for downstream projects (mc_rtc-magnum, controllers, plugins, etc). I'll leave it open until enough use-cases have been integrated and tested in mc-rtc/nixpkgs#1

  • Formatter for sva::PTransformd with niceties (automatic display of RPY in both rad/deg and in Featherstone/usual convention, etc). Required for mc_rtc-magnum
  • Nix sets absolute values for CMAKE_INSTALL_* where we expect relative paths (see CMake incorrect absolute include/lib paths tracking issue NixOS/nixpkgs#144170)
  • Add mc_rtc::JSON_SCHEMA_PATH to mc_rtc/config.h to ensure that downstream projects use the same installed path as mc_rtc's

To merge after: mc-rtc/mc_rtc-magnum#3
Related to: #356

Nix sets them to an absolute path with clashes with the usual assumtion
that GNUInstallPaths returns them as relative names (e.g lib, bin, ...)
@arntanguy arntanguy self-assigned this Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant