d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
47 lines
987 B
Nix
47 lines
987 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pythonSupport ? false
|
|
, python3Packages
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "example-robot-data";
|
|
version = "4.0.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Gepetto";
|
|
repo = finalAttrs.pname;
|
|
rev = "v${finalAttrs.version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-xeNbx1f9QCAOJrXfkk3jo9XH2/4HNtnRA1OSnqA2cLs=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = lib.optionals pythonSupport [
|
|
python3Packages.pinocchio
|
|
];
|
|
|
|
cmakeFlags = lib.optionals (!pythonSupport) [
|
|
"-DBUILD_PYTHON_INTERFACE=OFF"
|
|
];
|
|
|
|
doCheck = true;
|
|
pythonImportsCheck = [
|
|
"example_robot_data"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Set of robot URDFs for benchmarking and developed examples.";
|
|
homepage = "https://github.com/Gepetto/example-robot-data";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ nim65s wegank ];
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|