1{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, pkg-config, validatePkgConfig
2, urdfdom-headers, console-bridge, tinyxml }:
3
4stdenv.mkDerivation rec {
5 pname = "urdfdom";
6 version = "3.1.1";
7
8 src = fetchFromGitHub {
9 owner = "ros";
10 repo = pname;
11 rev = version;
12 hash = "sha256-UdkGJAXK3Q8QJaqMZBA5/FKUgWq9EVeqkqwVewTlTD8=";
13 };
14
15 patches = [
16 # Fix CMake relative install dir assumptions (https://github.com/ros/urdfdom/pull/142)
17 (fetchpatch {
18 url = "https://github.com/ros/urdfdom/commit/cbe6884d267779463bb444be851f6404e692cc0a.patch";
19 hash = "sha256-1gTRKIGqiSRion76bGecSfFJSBskYUJguUIa6ePIiX4=";
20 })
21 ];
22
23 nativeBuildInputs = [ cmake pkg-config validatePkgConfig ];
24 propagatedBuildInputs = [ urdfdom-headers console-bridge tinyxml ];
25
26 meta = with lib; {
27 description = "Provides core data structures and a simple XML parser for populating the class data structures from an URDF file";
28 homepage = "https://github.com/ros/urdfdom";
29 license = licenses.bsd3;
30 maintainers = with maintainers; [ lopsided98 ];
31 platforms = platforms.all;
32 };
33}