Skip to content

Commit

Permalink
jsk-recognition-msgs: cleanup patching
Browse files Browse the repository at this point in the history
* Move to ros1-overlay.nix
* Link to upstream PRs
* Use --replace-fail
  • Loading branch information
lopsided98 committed Jul 26, 2024
1 parent a55d6a9 commit a76cac0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
9 changes: 0 additions & 9 deletions distros/distro-overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,6 @@ let

image-cb-detector = patchBoostSignals rosSuper.image-cb-detector;

jsk-recognition-msgs = rosSuper.jsk-recognition-msgs.overrideAttrs ({
buildInputs ? [], postPatch ? "", ...
}: {
buildInputs = buildInputs ++ [ rosSuper.ros-environment ];
postPatch = ''
substituteInPlace CMakeLists.txt --replace "catkin_python_setup()" ""
'';
});

laser-cb-detector = patchBoostSignals rosSuper.laser-cb-detector;

libfranka = rosSuper.libfranka.overrideAttrs ({
Expand Down
13 changes: 13 additions & 0 deletions distros/ros1-overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,19 @@ rosSelf: rosSuper: with rosSelf.lib; {
sha256 = "0nryr4hg3lha1aaz35wbqr42lb6l8alfcy6slj2yn2dgb5syrmn2";
};

jsk-recognition-msgs = rosSuper.jsk-recognition-msgs.overrideAttrs ({
buildInputs ? [], postPatch ? "", ...
}: {
# Merged upstream
# https://github.com/jsk-ros-pkg/jsk_recognition/pull/2836
buildInputs = buildInputs ++ [ rosSelf.ros-environment ];
# Part of upstream PR
# https://github.com/jsk-ros-pkg/jsk_recognition/pull/2829
postPatch = ''
substituteInPlace CMakeLists.txt --replace-fail "catkin_python_setup()" ""
'';
});

libphidgets = patchVendorUrl rosSuper.libphidgets {
url = "https://www.phidgets.com/downloads/phidget21/libraries/linux/libphidget/libphidget_2.1.8.20151217.tar.gz";
sha256 = "0lpaskqxpklm05050wwvdqwhw30f2hpzss8sgyvczdpvvqzjg4vk";
Expand Down

0 comments on commit a76cac0

Please sign in to comment.