2020-07-18 16:06:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, pkg-config, validatePkgConfig
|
2023-07-15 17:15:38 +00:00
|
|
|
, urdfdom-headers, console-bridge, tinyxml }:
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "urdfdom";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "3.1.1";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ros";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-UdkGJAXK3Q8QJaqMZBA5/FKUgWq9EVeqkqwVewTlTD8=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Fix CMake relative install dir assumptions (https://github.com/ros/urdfdom/pull/142)
|
|
|
|
(fetchpatch {
|
2022-11-21 17:40:18 +00:00
|
|
|
url = "https://github.com/ros/urdfdom/commit/cbe6884d267779463bb444be851f6404e692cc0a.patch";
|
|
|
|
hash = "sha256-1gTRKIGqiSRion76bGecSfFJSBskYUJguUIa6ePIiX4=";
|
2020-07-18 16:06:22 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config validatePkgConfig ];
|
2023-07-15 17:15:38 +00:00
|
|
|
propagatedBuildInputs = [ urdfdom-headers console-bridge tinyxml ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Provides core data structures and a simple XML parser for populating the class data structures from an URDF file";
|
|
|
|
homepage = "https://github.com/ros/urdfdom";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ lopsided98 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|