Something went wrong. Try again.
lol
Something went wrong. Try again.
990 B · 46 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ 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 ] ++ super.propagatedBuildInputs ++ 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" ]; }))