moveit2: fix build

This commit is contained in:
Viktor Pocedulić 2024-10-22 23:43:28 +02:00 committed by Ben Wolsieffer
parent f07f7f9c42
commit 078f11d74c

View file

@ -25,6 +25,14 @@ in {
gazebo = self.gazebo_11;
geometric-shapes = rosSuper.geometric-shapes.overrideAttrs({
postPatch ? "", ...
}: {
postPatch = postPatch + ''
substituteInPlace CMakeLists.txt --replace-fail 'find_package(octomap 1.9.7...<1.10.0 REQUIRED)' 'find_package(octomap REQUIRED)'
'';
});
google-benchmark-vendor = lib.patchExternalProjectGit rosSuper.google-benchmark-vendor {
url = "https://github.com/google/benchmark.git";
rev = "344117638c8ff7e239044fd0fa7085839fc03021";
@ -184,6 +192,51 @@ in {
hash = "sha256-Qaz26F11VWxkQH8HfgVJLTHbHwmeByQu8ENkuyk5rPE=";
};
moveit-core = rosSuper.moveit-core.overrideAttrs({
postPatch ? "", ...
}: {
postPatch = postPatch + ''
substituteInPlace CMakeLists.txt --replace-fail 'find_package(octomap 1.9.7...<1.10.0 REQUIRED)' 'find_package(octomap REQUIRED)'
'';
});
moveit-ros-occupancy-map-monitor = rosSuper.moveit-ros-occupancy-map-monitor.overrideAttrs({
postPatch ? "", ...
}: {
postPatch = postPatch + ''
substituteInPlace CMakeLists.txt --replace-fail 'find_package(octomap 1.9.7...<1.10.0 REQUIRED)' 'find_package(octomap REQUIRED)'
'';
});
osqp-vendor = lib.pipe rosSuper.osqp-vendor [
# Make CMakeLists.txt amenable to automatic patching by the next step.
(pkg: pkg.overrideAttrs ({ prePatch ? "", ... }: {
prePatch = prePatch + ''
sed -i 's/GIT_TAG.*/GIT_TAG v0.6.2/' CMakeLists.txt
'';
}))
(pkg: lib.patchExternalProjectGit pkg {
url = "https://github.com/osqp/osqp.git";
rev = "v0.6.2";
fetchgitArgs = {
hash = "sha256-0BbUe1J9qzvyKDBLTz+pAEmR3QpRL+hnxZ2re/3mEvs=";
leaveDotGit = true;
};
})
# osqp installs into both lib/cmake/ and lib64/cmake/ which is problematic
# because moveLib64 doesn't attempt to merge overlapping directories but
# fails instead. Here we do the merge manually.
(pkg: pkg.overrideAttrs ({ preInstall ? "", ... }: {
preInstall = preInstall + ''
mkdir -p ./osqp_install/lib/cmake/osqp
mv ./osqp_install/lib64/cmake/osqp/* ./osqp_install/lib/cmake/osqp
rm -r ./osqp_install/lib64/cmake
'';
}))
];
rviz-ogre-vendor = lib.patchAmentVendorGit rosSuper.rviz-ogre-vendor {
url = "https://github.com/OGRECave/ogre.git";
rev = "v1.12.10";