python3Packages.coal: make standalone optional

This commit is contained in:
Guilhem Saurel
2025-12-12 09:23:28 +01:00
parent 9aba0622c9
commit 00f8f3e69a
@@ -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