From d55425d2a074834ddb8e9ec50605b7fdccc56a69 Mon Sep 17 00:00:00 2001 From: ppenguin Date: Sun, 10 Jan 2021 12:41:36 +0100 Subject: [PATCH] vtk_7: add patches to fix build with gcc10/qt5.15 Closes #108424 --- pkgs/development/libraries/vtk/7.x.nix | 7 ++++++- pkgs/development/libraries/vtk/8.x.nix | 7 +++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/vtk/7.x.nix b/pkgs/development/libraries/vtk/7.x.nix index 55f950e0ac90..860f17639454 100644 --- a/pkgs/development/libraries/vtk/7.x.nix +++ b/pkgs/development/libraries/vtk/7.x.nix @@ -5,5 +5,10 @@ import ./generic.nix { patchesToFetch = [{ url = "https://gitlab.kitware.com/vtk/vtk/-/commit/706f1b397df09a27ab8981ab9464547028d0c322.diff"; sha256 = "1q3pi5h40g05pzpbqp75xlgzvbfvyw8raza51svmi7d8dlslqybx"; - }]; + } + { + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sci-libs/vtk/files/vtk-8.2.0-gcc-10.patch?id=c4256f68d3589570443075eccbbafacf661f785f"; + sha256 = "sha256:0bpwrdfmi15grsg4jy7bzj2z6511a0c160cmw5lsi65aabyh7cl5"; + } + ]; } diff --git a/pkgs/development/libraries/vtk/8.x.nix b/pkgs/development/libraries/vtk/8.x.nix index f86d0915daf7..ad84ec163cfa 100644 --- a/pkgs/development/libraries/vtk/8.x.nix +++ b/pkgs/development/libraries/vtk/8.x.nix @@ -7,9 +7,12 @@ import ./generic.nix { sha256 = "0qdahp4f4gcaznr28j06d5fyxiis774ys0p335aazf7h51zb8rzy"; } { - meta.description = "Fix compiling with gcc-10+"; url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sci-libs/vtk/files/vtk-8.2.0-gcc-10.patch?id=c4256f68d3589570443075eccbbafacf661f785f"; - sha256 = "0bpwrdfmi15grsg4jy7bzj2z6511a0c160cmw5lsi65aabyh7cl5"; + sha256 = "sha256:0bpwrdfmi15grsg4jy7bzj2z6511a0c160cmw5lsi65aabyh7cl5"; + } + { + url = "https://gitlab.kitware.com/vtk/vtk/-/merge_requests/6943.diff"; + sha256 = "sha256:1nzdw3f6bsri04y528zj2klqkb9p8s4lnl9g5zvm119m1cmyhn04"; } ]; }