mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-12 02:34:50 +03:00
25 lines
872 B
Nix
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 ];
|
|
};
|
|
}
|