python3Packages.mim-solvers: make standalone optional

This commit is contained in:
Guilhem Saurel
2025-11-10 17:14:19 +01:00
parent 458fade3bd
commit 2b60613f87
@@ -19,6 +19,8 @@
# nativeCheckInputs
pytest,
buildStandalone ? true,
}:
toPythonModule (
mim-solvers.overrideAttrs (super: {
@@ -26,7 +28,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)
];
# this is used by CMake at configure/build time
@@ -38,12 +40,12 @@ toPythonModule (
boost
crocoddyl
eigenpy
mim-solvers
osqp
proxsuite
scipy
]
++ super.propagatedBuildInputs;
++ super.propagatedBuildInputs
++ lib.optional buildStandalone mim-solvers;
nativeCheckInputs = super.nativeCheckInputs ++ [
pythonImportsCheckHook