Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / urdfdom / default.nix
blob6e59914044fc047187365a15289b8412675198a1
1 { lib, stdenv, fetchFromGitHub, fetchpatch, cmake, pkg-config, validatePkgConfig
2 , urdfdom-headers, console-bridge, tinyxml }:
4 stdenv.mkDerivation rec {
5   pname = "urdfdom";
6   version = "3.1.1";
8   src = fetchFromGitHub {
9     owner = "ros";
10     repo = pname;
11     rev = version;
12     hash = "sha256-UdkGJAXK3Q8QJaqMZBA5/FKUgWq9EVeqkqwVewTlTD8=";
13   };
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   ];
23   nativeBuildInputs = [ cmake pkg-config validatePkgConfig ];
24   propagatedBuildInputs = [ urdfdom-headers console-bridge tinyxml ];
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   };