Skip to content

Commit 46f29d4

Browse files
committed
python3Packages.scikit-learn: hack-fix missing libstdc++
gfortran doesn't include the library now, perhaps temporarily.
1 parent 75e19b9 commit 46f29d4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • pkgs/development/python-modules/scikit-learn

pkgs/development/python-modules/scikit-learn/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ buildPythonPackage rec {
5555
export SKLEARN_BUILD_PARALLEL=$NIX_BUILD_CORES
5656
'';
5757

58+
# TODO: a proper fix? See around PR #225220
59+
NIX_LDFLAGS = if stdenv.cc.isGNU then "-L${stdenv.cc.cc.lib}/lib" else null;
60+
5861
doCheck = !stdenv.isAarch64;
5962

6063
disabledTests = [

0 commit comments

Comments
 (0)