Skip to content

Commit

Permalink
Only apply geometric-shapes override on rolling and jazzy
Browse files Browse the repository at this point in the history
Older distros don't need it.
  • Loading branch information
lopsided98 committed Nov 15, 2024
1 parent e819a93 commit 123b5ce
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
11 changes: 11 additions & 0 deletions distros/jazzy/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ in {

gazebo = self.gazebo_11;

geometric-shapes = rosSuper.geometric-shapes.overrideAttrs({
postPatch ? "", ...
}: {
# Remove workaround for Ubuntu-specific dependency hell issue
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";
Expand Down
11 changes: 11 additions & 0 deletions distros/rolling/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ in {

gazebo = self.gazebo_11;

geometric-shapes = rosSuper.geometric-shapes.overrideAttrs({
postPatch ? "", ...
}: {
# Remove workaround for Ubuntu-specific dependency hell issue
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";
Expand Down
11 changes: 0 additions & 11 deletions distros/ros2-overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,6 @@ rosSelf: rosSuper: with rosSelf.lib; {
fetchgitArgs.hash = "sha256-i8EtjPMg39S/3RyoUaXm5A8Nu/NbgAwjxRCdyh2elyU=";
};

geometric-shapes = rosSuper.geometric-shapes.overrideAttrs({
postPatch ? "", ...
}: {
# Remove workaround for Ubuntu-specific dependency hell issue
postPatch = postPatch + ''
substituteInPlace CMakeLists.txt --replace-fail \
'find_package(octomap 1.9.7...<1.10.0 REQUIRED)' \
'find_package(octomap REQUIRED)'
'';
});

gmock-vendor = rosSuper.gmock-vendor.overrideAttrs ({
nativeBuildInputs ? [], ...
}: {
Expand Down

0 comments on commit 123b5ce

Please sign in to comment.