1
0
Fork 0
mirror of https://github.com/lopsided98/nix-ros-overlay.git synced 2025-07-13 13:40:32 +03:00

- fix librealsense2 build (squash commits)

This commit is contained in:
Akshay Srinivasan 2024-07-05 13:19:11 +09:00 committed by Ben Wolsieffer
parent f92010d437
commit 1f4b95fc0e

View file

@ -72,6 +72,21 @@ rosSelf: rosSuper: with rosSelf.lib; {
cmakeFlags = cmakeFlags ++ [ "-DDOWNLOAD_TOML_LIB=OFF" ];
});
librealsense2 = rosSuper.librealsense2.overrideAttrs ({
buildInputs, postPatch ? "", version, ...
}: {
buildInputs = buildInputs ++
(if version >= "2.55.1" then
[ self.nlohmann_json ]
else []);
postPatch = postPatch +
(if version >= "2.55.1" then
''
substituteInPlace third-party/CMakeLists.txt --replace-fail 'include(CMake/external_json.cmake)' ""
''
else "");
});
popf = rosSuper.popf.overrideAttrs ({
nativeBuildInputs ? [], postPatch ? "", ...
}: {