13 stdenv.mkDerivation (finalAttrs: {
14 pname = "example-robot-data";
17 src = fetchFromGitHub {
19 repo = "example-robot-data";
20 rev = "v${finalAttrs.version}";
21 fetchSubmodules = true;
22 hash = "sha256-Heq+c8SSYNO8ksTv5FphRBRStlTakm9T66jlPXon5tI=";
33 # Temporary patch for pinocchio v3.0.0 compatibility.
34 # Should be removed on next example-robot-data release
37 url = "https://github.com/Gepetto/example-robot-data/pull/217/commits/a605ceec857005cde153ec5895e227205eb7a5c3.patch";
38 hash = "sha256-cvAWFytrU2XVggo/nCg8cuLcaZBTACXg6LxjL/6YMPs=";
48 ++ lib.optionals pythonSupport [
49 python3Packages.python
50 python3Packages.pythonImportsCheckHook
53 propagatedBuildInputs = lib.optionals pythonSupport [ python3Packages.pinocchio ];
55 cmakeFlags = [ (lib.cmakeBool "BUILD_PYTHON_INTERFACE" pythonSupport) ];
58 # The package expect to find an `example-robot-data/robots` folder somewhere
59 # either in install prefix or in the sources
60 # where it can find the meshes for unit tests
61 preCheck = "ln -s source ../../${finalAttrs.pname}";
62 pythonImportsCheck = [ "example_robot_data" ];
65 description = "Set of robot URDFs for benchmarking and developed examples";
66 homepage = "https://github.com/Gepetto/example-robot-data";
67 license = licenses.bsd3;
68 maintainers = with maintainers; [
72 platforms = platforms.unix;