From 00f8f3e69a7085147fbc8de5b1feb7b8d7448a9b Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Wed, 29 Oct 2025 08:28:54 +0100 Subject: [PATCH] python3Packages.coal: make standalone optional --- pkgs/development/python-modules/coal/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/coal/default.nix b/pkgs/development/python-modules/coal/default.nix index 773de813e0da..28a7e1642d4f 100644 --- a/pkgs/development/python-modules/coal/default.nix +++ b/pkgs/development/python-modules/coal/default.nix @@ -10,6 +10,8 @@ eigenpy, pylatexenc, numpy, + + buildStandalone ? true, }: toPythonModule ( coal.overrideAttrs (super: { @@ -17,7 +19,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 @@ -26,11 +28,12 @@ toPythonModule ( pylatexenc ]; - propagatedBuildInputs = super.propagatedBuildInputs ++ [ + propagatedBuildInputs = [ boost - coal eigenpy - ]; + ] + ++ super.propagatedBuildInputs + ++ lib.optional buildStandalone coal; nativeCheckInputs = [ pythonImportsCheckHook