Skip to content

Commit 90db964

Browse files
authored
qt5.qtwebengine: fix build with bison-3.7 (#96295)
1 parent 28aef45 commit 90db964

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

pkgs/development/libraries/qt-5/modules/qtwebengine.nix

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
, gn
1616
, cups, darwin, openbsm, runCommand, xcbuild, writeScriptBin
1717
, ffmpeg_3 ? null
18-
, lib, stdenv
18+
, lib, stdenv, fetchpatch
1919
}:
2020

2121
with stdenv.lib;
@@ -38,6 +38,17 @@ qtModule {
3838
# which cannot be set at the same time as -Wformat-security
3939
hardeningDisable = [ "format" ];
4040

41+
patches = [
42+
# Fix build with bison-3.7: https://code.qt.io/cgit/qt/qtwebengine-chromium.git/commit/?id=1a53f599
43+
(fetchpatch {
44+
name = "qtwebengine-bison-3.7-build.patch";
45+
url = "https://code.qt.io/cgit/qt/qtwebengine-chromium.git/patch/?id=1a53f599";
46+
sha256 = "1nqpyn5fq37q7i9nasag6i14lnz0d7sld5ikqhlm8qwq9d7gbmjy";
47+
stripLen = 1;
48+
extraPrefix = "src/3rdparty/";
49+
})
50+
];
51+
4152
postPatch =
4253
# Patch Chromium build tools
4354
''

0 commit comments

Comments
 (0)