The headers I'm especially interested in are those in the ouster_ros/include/ouster_ros/* directory, and I'm trying to import them as #import <ouster_ros/os_point.h. This has worked before, when I've tried this without nix, though of course then I just had the ouster-ros repo in my catkin source folder, so I don't know why that worked.
{ lib, buildRosPackage, stdenv, cmake, ninja, wrapQtAppsHook, qtbase, eigen, jsoncpp, spdlog
, openssl, cppunit, pcl-ros, rviz, roscpp, message-runtime, std-msgs
, sensor-msgs, geometry-msgs, fetchFromGitHub, }:
buildRosPackage rec {
pname = "ouster-ros";
version = "0.10.0";
src = fetchFromGitHub {
owner = "ouster-lidar";
repo = "ouster-ros";
rev = "v${version}";
sha256 = "sha256-0SnDs4JAZJZjjMlt5A10A9ql3be3ds8Xsp65Txy6/v4=";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake ninja wrapQtAppsHook ];
propagatedBuildInputs = [
eigen
jsoncpp
spdlog
openssl
cppunit
qtbase
pcl-ros
rviz
roscpp
message-runtime
std-msgs
sensor-msgs
geometry-msgs
];
cmakeFlags =
[ "-DCMAKE_BUILD_TYPE=Release" "-DBUILD_PCAP=OFF" "-DBUILD_VIZ=OFF" ];
qtWrapperArgs = [
# Let the gazebo binary see neighboring binaries.
# It attempts to run gzclient from PATH.
"--prefix PATH : ${placeholder "out"}/bin"
# Prevent Gazebo from attempting to use Wayland.
# As is the case with RViz2, OGRE does not yet support it.
"--set WAYLAND_DISPLAY dummy" # "dummy" is arbitrary - it just doesn't exist.
];
}
I tried to package ouster-ros, but end up with a pretty weird include-structure:
The headers I'm especially interested in are those in the
ouster_ros/include/ouster_ros/*
directory, and I'm trying to import them as#import <ouster_ros/os_point.h
. This has worked before, when I've tried this withoutnix
, though of course then I just had theouster-ros
repo in my catkin source folder, so I don't know why that worked.