From 2b60613f8763ede13a1cff2ff533e8afe123f6dc Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Mon, 10 Nov 2025 17:14:19 +0100 Subject: [PATCH] python3Packages.mim-solvers: make standalone optional --- pkgs/development/python-modules/mim-solvers/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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