3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #174287 from NickCao/qtwebengine

qt6.qtwebengine: fix resource search paths
This commit is contained in:
Sandro 2022-05-27 19:50:31 +02:00 committed by GitHub
commit 43bf605063
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,6 +64,7 @@
, lcms2
, re2
, libkrb5
, xkeyboard_config
, enableProprietaryCodecs ? true
}:
@ -127,6 +128,13 @@ qtModule rec {
sed -i -e '/libpci_loader.*Load/s!"\(libpci\.so\)!"${pciutils}/lib/\1!' \
src/3rdparty/chromium/gpu/config/gpu_info_collector_linux.cc
substituteInPlace src/3rdparty/chromium/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc \
--replace "/usr/share/X11/xkb" "${xkeyboard_config}/share/X11/xkb"
substituteInPlace src/core/web_engine_library_info.cpp \
--replace "QLibraryInfo::path(QLibraryInfo::DataPath)" "\"$out\"" \
--replace "QLibraryInfo::path(QLibraryInfo::TranslationsPath)" "\"$out/translations\""
'';
cmakeFlags = [