Files
nixpkgs/pkgs/development/python-modules/coal/default.nix
T
Guilhem Saurel 1870b234c5 python3Packages.coal: depend on pkgs.coal
instead of rebuild, use the new BUILD_STANDALONE_PYTHON_INTERFACE
feature.
2025-10-15 19:54:47 +02:00

45 lines
736 B
Nix

{
lib,
toPythonModule,
pythonImportsCheckHook,
coal,
boost,
eigenpy,
pylatexenc,
numpy,
}:
toPythonModule (
coal.overrideAttrs (super: {
pname = "py-${super.pname}";
cmakeFlags = super.cmakeFlags ++ [
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" true)
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" true)
];
# those are used by CMake at configure/build time
nativeBuildInputs = super.nativeBuildInputs ++ [
numpy
pylatexenc
];
propagatedBuildInputs = super.propagatedBuildInputs ++ [
boost
coal
eigenpy
];
nativeCheckInputs = [
pythonImportsCheckHook
];
pythonImportsCheck = [
"coal"
"hppfcl"
];
})
)