Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546{ lib,
toPythonModule, pythonImportsCheckHook,
example-robot-data,
python, pinocchio,
buildStandalone ? true,}:toPythonModule ( example-robot-data.overrideAttrs (super: { pname = "py-${super.pname}";
cmakeFlags = super.cmakeFlags ++ [ (lib.cmakeBool "BUILD_PYTHON_INTERFACE" true) (lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" buildStandalone) ];
nativeBuildInputs = super.nativeBuildInputs ++ [ python ];
propagatedBuildInputs = [ pinocchio ] ++ lib.optional buildStandalone example-robot-data;
nativeCheckInputs = [ pythonImportsCheckHook ];
# The package expect to find an `example-robot-data/robots` folder somewhere # either in install prefix or in the sources # where it can find the meshes for unit tests preCheck = '' ln -s source ../../example-robot-data '';
pythonImportsCheck = [ "example_robot_data" ]; }))