diff --git a/pkgs/development/python-modules/mim-solvers/default.nix b/pkgs/development/python-modules/mim-solvers/default.nix index ebb18af22dfd..ca90458c4476 100644 --- a/pkgs/development/python-modules/mim-solvers/default.nix +++ b/pkgs/development/python-modules/mim-solvers/default.nix @@ -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