1{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, validatePkgConfig }:
2
3stdenv.mkDerivation rec {
4 pname = "urdfdom-headers";
5 version = "1.1.0";
6
7 src = fetchFromGitHub {
8 owner = "ros";
9 repo = "urdfdom_headers";
10 rev = version;
11 hash = "sha256-ry5wDMRxR7TtupUghe9t1XP0XMvWKiOesO5RFHPrSdI=";
12 };
13
14 patches = [
15 # Fix CMake relative install dir assumptions (https://github.com/ros/urdfdom_headers/pull/66)
16 (fetchpatch {
17 url = "https://github.com/ros/urdfdom_headers/commit/c9c993147bbf18d5ec83bae684c5780281e529b4.patch";
18 hash = "sha256-BnYPdcetYSim2O1R38N0d1tY0Id++AgKNic8+dlM6Vg=";
19 })
20 ];
21
22 nativeBuildInputs = [ cmake validatePkgConfig ];
23
24 meta = with lib; {
25 description = "URDF (U-Robot Description Format) headers provides core data structure headers for URDF";
26 homepage = "https://github.com/ros/urdfdom_headers";
27 license = licenses.bsd3;
28 maintainers = with maintainers; [ lopsided98 ];
29 platforms = platforms.all;
30 };
31}