python3Packages.crocoddyl: make standalone optional

This commit is contained in:
Guilhem Saurel
2025-12-12 09:23:28 +01:00
parent f585895ab9
commit 0719964b5a
@@ -14,6 +14,8 @@
ipykernel,
python,
scipy,
buildStandalone ? true,
}:
toPythonModule (
crocoddyl.overrideAttrs (super: {
@@ -21,7 +23,7 @@ toPythonModule (
cmakeFlags = super.cmakeFlags ++ [
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" true)
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" true)
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" buildStandalone)
];
# those are used by CMake at configure/build time
@@ -29,10 +31,11 @@ toPythonModule (
python
];
propagatedBuildInputs = super.propagatedBuildInputs ++ [
crocoddyl
propagatedBuildInputs = [
example-robot-data
];
]
++ super.propagatedBuildInputs
++ lib.optional buildStandalone crocoddyl;
nativeCheckInputs = [
ffmpeg