Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / urdfdom-headers / default.nix
blob138597ad89a61d512dc44a0203af7866833c0180
1 { lib, stdenv, fetchFromGitHub, fetchpatch, cmake, validatePkgConfig }:
3 stdenv.mkDerivation rec {
4   pname = "urdfdom-headers";
5   version = "1.1.0";
7   src = fetchFromGitHub {
8     owner = "ros";
9     repo = "urdfdom_headers";
10     rev = version;
11     hash = "sha256-ry5wDMRxR7TtupUghe9t1XP0XMvWKiOesO5RFHPrSdI=";
12   };
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   ];
22   nativeBuildInputs = [ cmake validatePkgConfig ];
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   };