2020-07-18 16:06:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, pkg-config, validatePkgConfig
|
2024-06-20 14:57:18 +00:00
|
|
|
, tinyxml-2, console-bridge, urdfdom-headers }:
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "urdfdom";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "4.0.0";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ros";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-t1ff5aRHE7LuQdCXuooWPDUgPWjyYyQmQUB1RJmte1w=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Fix CMake relative install dir assumptions (https://github.com/ros/urdfdom/pull/142)
|
|
|
|
(fetchpatch {
|
2024-06-20 14:57:18 +00:00
|
|
|
url = "https://github.com/ros/urdfdom/commit/61a7e35cd5abece97259e76aed8504052b2f5b53.patch";
|
|
|
|
hash = "sha256-b3bEbbaSUDkwTEHJ8gVPEb+AR/zuWwLqiAW5g1T1dPU=";
|
2020-07-18 16:06:22 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config validatePkgConfig ];
|
2024-06-20 14:57:18 +00:00
|
|
|
buildInputs = [ tinyxml-2 console-bridge ];
|
|
|
|
propagatedBuildInputs = [ urdfdom-headers ];
|
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;
|
|
|
|
};
|
|
|
|
}
|