python3Packages.mim-solvers: make standalone optional
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user