depot/third_party/nixpkgs/pkgs/development/libraries/urdfdom-headers/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

31 lines
993 B
Nix

{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, validatePkgConfig }:
stdenv.mkDerivation rec {
pname = "urdfdom-headers";
version = "1.1.1";
src = fetchFromGitHub {
owner = "ros";
repo = "urdfdom_headers";
rev = version;
hash = "sha256-FQSnYuTc40MOxyFsMPfoCIonP+4AUQxdq74eoQ9tOoo=";
};
patches = [
# Fix CMake relative install dir assumptions (https://github.com/ros/urdfdom_headers/pull/66)
(fetchpatch {
url = "https://github.com/ros/urdfdom_headers/commit/6e0cea148c3a7123f8367cd48d5709a4490c32f1.patch";
hash = "sha256-LC2TACGma/k6+WE9fTkzY98SgJYKsVuj5O9v84Q5mQ4=";
})
];
nativeBuildInputs = [ cmake validatePkgConfig ];
meta = with lib; {
description = "URDF (U-Robot Description Format) headers provides core data structure headers for URDF";
homepage = "https://github.com/ros/urdfdom_headers";
license = licenses.bsd3;
maintainers = with maintainers; [ lopsided98 ];
platforms = platforms.all;
};
}