nixpkgs/pkgs/by-name/ur/urdfdom-headers/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

32 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;
};
}