This reverts commit 65a333600d5c88a98d674f637d092807cfc12253. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e4587d75882aebc21a04bee960418f8ce9
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  lib,
 | 
						|
  stdenv,
 | 
						|
  fetchFromGitHub,
 | 
						|
  fetchpatch,
 | 
						|
  cmake,
 | 
						|
  pkg-config,
 | 
						|
  validatePkgConfig,
 | 
						|
  tinyxml-2,
 | 
						|
  console-bridge,
 | 
						|
  urdfdom-headers,
 | 
						|
}:
 | 
						|
 | 
						|
stdenv.mkDerivation rec {
 | 
						|
  pname = "urdfdom";
 | 
						|
  version = "4.0.0";
 | 
						|
 | 
						|
  src = fetchFromGitHub {
 | 
						|
    owner = "ros";
 | 
						|
    repo = "urdfdom";
 | 
						|
    rev = version;
 | 
						|
    hash = "sha256-t1ff5aRHE7LuQdCXuooWPDUgPWjyYyQmQUB1RJmte1w=";
 | 
						|
  };
 | 
						|
 | 
						|
  patches = [
 | 
						|
    # Fix CMake relative install dir assumptions (https://github.com/ros/urdfdom/pull/142)
 | 
						|
    (fetchpatch {
 | 
						|
      url = "https://github.com/ros/urdfdom/commit/61a7e35cd5abece97259e76aed8504052b2f5b53.patch";
 | 
						|
      hash = "sha256-b3bEbbaSUDkwTEHJ8gVPEb+AR/zuWwLqiAW5g1T1dPU=";
 | 
						|
    })
 | 
						|
  ];
 | 
						|
 | 
						|
  nativeBuildInputs = [
 | 
						|
    cmake
 | 
						|
    pkg-config
 | 
						|
    validatePkgConfig
 | 
						|
  ];
 | 
						|
  buildInputs = [
 | 
						|
    tinyxml-2
 | 
						|
    console-bridge
 | 
						|
  ];
 | 
						|
  propagatedBuildInputs = [ urdfdom-headers ];
 | 
						|
 | 
						|
  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;
 | 
						|
  };
 | 
						|
}
 |