diff --git a/pkgs/development/python-modules/lightgbm/default.nix b/pkgs/development/python-modules/lightgbm/default.nix index fee314aa6c3..10dbcafd04b 100644 --- a/pkgs/development/python-modules/lightgbm/default.nix +++ b/pkgs/development/python-modules/lightgbm/default.nix @@ -1,10 +1,11 @@ -{ lib +{ stdenv , buildPythonPackage , fetchPypi , cmake , numpy , scipy , scikitlearn +, llvmPackages ? null }: buildPythonPackage rec { @@ -20,6 +21,19 @@ buildPythonPackage rec { cmake ]; + # we never actually explicitly call the install command so this is the only way + # to inject these options to it - however, openmp-library doesn't appear to have + # any effect, so we have to inject it into NIX_LDFLAGS manually below + postPatch = stdenv.lib.optionalString stdenv.cc.isClang '' + cat >> setup.cfg <