qt5.qtwebengine: patch to build with python 3.12
https://hydra.nixos.org/build/264588210/nixlog/1/tail
This commit is contained in:
parent
0519df43f4
commit
36e613d0be
@ -1,5 +1,6 @@
|
||||
{ qtModule
|
||||
, qtdeclarative, qtquickcontrols, qtlocation, qtwebchannel
|
||||
, fetchpatch
|
||||
|
||||
, bison, flex, git, gperf, ninja, pkg-config, python, which
|
||||
, nodejs, perl
|
||||
@ -81,6 +82,21 @@ qtModule ({
|
||||
(
|
||||
cd src/3rdparty/chromium;
|
||||
|
||||
patch -p2 < ${
|
||||
(fetchpatch { # support for building with python 3.12
|
||||
name = "python312-imp.patch";
|
||||
url = "https://codereview.qt-project.org/gitweb?p=qt/qtwebengine-chromium.git;a=patch;h=3664134f749f4851a14ab1953a9ee460a1fe0b68";
|
||||
hash = "sha256-XY0dEdeuOTRMR7onmuNg1Axld8+pquKAzOfDAGSIzI4=";
|
||||
})
|
||||
}
|
||||
patch -p1 < ${
|
||||
(fetchpatch { # support for building with python 3.12
|
||||
name = "python312-six.patch";
|
||||
url = "https://gitlab.archlinux.org/archlinux/packaging/packages/qt5-webengine/-/raw/6b0c0e76e0934db2f84be40cb5978cee47266e78/python3.12-six.patch";
|
||||
hash = "sha256-YgP9Sq5+zTC+U7+0hQjZokwb+fytk0UEIJztUXFhTkI=";
|
||||
})
|
||||
}
|
||||
|
||||
# Manually fix unsupported shebangs
|
||||
substituteInPlace third_party/harfbuzz-ng/src/src/update-unicode-tables.make \
|
||||
--replace "/usr/bin/env -S make -f" "/usr/bin/make -f" || true
|
||||
|
Loading…
Reference in New Issue
Block a user