nix-ros-overlay/distros/foxy/depthai/default.nix
Ben Wolsieffer d31e04aef7 Revert "Remove foxy."
This reverts commit 113129c9da.
2023-09-12 19:34:23 -04:00

25 lines
872 B
Nix

# Copyright 2023 Open Source Robotics Foundation
# Distributed under the terms of the BSD license
{ lib, buildRosPackage, fetchurl, ament-cmake, libusb1, nlohmann_json, opencv, ros-environment }:
buildRosPackage {
pname = "ros-foxy-depthai";
version = "2.21.2-r1";
src = fetchurl {
url = "https://github.com/luxonis/depthai-core-release/archive/release/foxy/depthai/2.21.2-1.tar.gz";
name = "2.21.2-1.tar.gz";
sha256 = "f136a970a03cf5361670a9008e16766252431b67e47f44666aab8fff26bd9487";
};
buildType = "ament_cmake";
buildInputs = [ ament-cmake ros-environment ];
propagatedBuildInputs = [ libusb1 nlohmann_json opencv ];
nativeBuildInputs = [ ament-cmake ];
meta = {
description = ''DepthAI core is a C++ library which comes with firmware and an API to interact with OAK Platform'';
license = with lib.licenses; [ mit ];
};
}