diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-11-04 23:06:27 +0100 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-11-04 23:06:27 +0100 |
commit | ccb9b5d39485028fdbbe64b1d63dcdaff9afda4a (patch) | |
tree | 30e90755dae69ff5440e6dc4c87b79caaaee5d3e | |
parent | 7589b11b523649904b621bedf687c86c8abca137 (diff) |
python311Packages.mahotas: fix build with clang 16
-rw-r--r-- | pkgs/development/python-modules/mahotas/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/mahotas/default.nix b/pkgs/development/python-modules/mahotas/default.nix index fa711c1b4cc67..2f234cc635425 100644 --- a/pkgs/development/python-modules/mahotas/default.nix +++ b/pkgs/development/python-modules/mahotas/default.nix @@ -38,6 +38,11 @@ buildPythonPackage rec { --replace 'ctypes.CDLL(libname)' 'np.ctypeslib.load_library("libfreeimage", "${freeimage}/lib")' ''; + # mahotas/_morph.cpp:864:10: error: no member named 'random_shuffle' in namespace 'std' + env = lib.optionalAttrs stdenv.cc.isClang { + NIX_CFLAGS_COMPILE = "-std=c++14"; + }; + # tests must be run in the build directory preCheck = '' cd build/lib* |