1{ lib
2, stdenv
3, fetchFromGitHub
4, cmake
5, pythonSupport ? false
6, python3Packages
7}:
8
9stdenv.mkDerivation rec {
10 pname = "example-robot-data";
11 version = "4.0.7";
12
13 src = fetchFromGitHub {
14 owner = "Gepetto";
15 repo = pname;
16 rev = "v${version}";
17 fetchSubmodules = true;
18 hash = "sha256-dN23ukKPkTohqD1J/0EneLyG6Cg0zriMr1l6WLFemd8=";
19 };
20
21 strictDeps = true;
22
23 nativeBuildInputs = [
24 cmake
25 ];
26
27 buildInputs = lib.optionals pythonSupport [
28 python3Packages.pinocchio
29 ];
30
31 cmakeFlags = lib.optionals (!pythonSupport) [
32 "-DBUILD_PYTHON_INTERFACE=OFF"
33 ];
34
35 meta = with lib; {
36 description = "Set of robot URDFs for benchmarking and developed examples.";
37 homepage = "https://github.com/Gepetto/example-robot-data";
38 license = licenses.bsd3;
39 maintainers = with maintainers; [ wegank ];
40 platforms = platforms.unix;
41 };
42}