Loading pkgs/development/libraries/vtk/0001-fix-mingw-templates.patch 0 → 100644 +14 −0 Original line number Diff line number Diff line diff --git a/Common/Core/vtkCompiler.h b/Common/Core/vtkCompiler.h index 238551c7..06617c20 100644 --- a/Common/Core/vtkCompiler.h +++ b/Common/Core/vtkCompiler.h @@ -35,7 +35,9 @@ #endif /** extern template declarations for C++11. */ +#if !defined(__MINGW32__) #define VTK_USE_EXTERN_TEMPLATE +#endif //---------------------------------------------------------------------------- // Provide a VTK_ALWAYS_EXPORT macro. pkgs/development/libraries/vtk/default.nix +4 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,10 @@ stdenv.mkDerivation rec { sha256 = "sha256-wZHSW0DXx5uRYy6sPYc6t5b7rsLEDVYGM8f3rsEayfI="; }; patches = [ ./0001-fix-mingw-templates.patch ]; nativeBuildInputs = [ cmake vtk-compile-tools Loading Loading
pkgs/development/libraries/vtk/0001-fix-mingw-templates.patch 0 → 100644 +14 −0 Original line number Diff line number Diff line diff --git a/Common/Core/vtkCompiler.h b/Common/Core/vtkCompiler.h index 238551c7..06617c20 100644 --- a/Common/Core/vtkCompiler.h +++ b/Common/Core/vtkCompiler.h @@ -35,7 +35,9 @@ #endif /** extern template declarations for C++11. */ +#if !defined(__MINGW32__) #define VTK_USE_EXTERN_TEMPLATE +#endif //---------------------------------------------------------------------------- // Provide a VTK_ALWAYS_EXPORT macro.
pkgs/development/libraries/vtk/default.nix +4 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,10 @@ stdenv.mkDerivation rec { sha256 = "sha256-wZHSW0DXx5uRYy6sPYc6t5b7rsLEDVYGM8f3rsEayfI="; }; patches = [ ./0001-fix-mingw-templates.patch ]; nativeBuildInputs = [ cmake vtk-compile-tools Loading