diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-06-04 15:12:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-04 15:12:16 +0200 |
commit | bb0c96dbd81e5c3d5b85b8a55eeecb830c8bdfbd (patch) | |
tree | 8211be6d40df07dcbf22f740860cc199b01f4f70 /pkgs/development/libraries/qt-6/modules/qtwebengine.nix | |
parent | 179039488e2c8c31b7c6567c57bc78e0fea39777 (diff) | |
parent | 05a1cba10bbaa866572a86b1cdfa743acd21e024 (diff) | |
download | nixpkgs-bb0c96dbd81e5c3d5b85b8a55eeecb830c8bdfbd.tar nixpkgs-bb0c96dbd81e5c3d5b85b8a55eeecb830c8bdfbd.tar.gz nixpkgs-bb0c96dbd81e5c3d5b85b8a55eeecb830c8bdfbd.tar.bz2 nixpkgs-bb0c96dbd81e5c3d5b85b8a55eeecb830c8bdfbd.tar.lz nixpkgs-bb0c96dbd81e5c3d5b85b8a55eeecb830c8bdfbd.tar.xz nixpkgs-bb0c96dbd81e5c3d5b85b8a55eeecb830c8bdfbd.tar.zst nixpkgs-bb0c96dbd81e5c3d5b85b8a55eeecb830c8bdfbd.zip |
Merge pull request #175306 from linsui/qtwebengine
qt6.qtwebengine: fix LibraryExecutablesPath
Diffstat (limited to 'pkgs/development/libraries/qt-6/modules/qtwebengine.nix')
-rw-r--r-- | pkgs/development/libraries/qt-6/modules/qtwebengine.nix | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/pkgs/development/libraries/qt-6/modules/qtwebengine.nix b/pkgs/development/libraries/qt-6/modules/qtwebengine.nix index 6a424218978..fa0f4eadf3d 100644 --- a/pkgs/development/libraries/qt-6/modules/qtwebengine.nix +++ b/pkgs/development/libraries/qt-6/modules/qtwebengine.nix @@ -116,13 +116,6 @@ qtModule rec { patchShebangs . ) - # Patch library paths in sources - sed -i \ - -e "s,QLibraryInfo::location(QLibraryInfo::DataPath),QLatin1String(\"$out\"),g" \ - -e "s,QLibraryInfo::location(QLibraryInfo::TranslationsPath),QLatin1String(\"$out/translations\"),g" \ - -e "s,QLibraryInfo::location(QLibraryInfo::LibraryExecutablesPath),QLatin1String(\"$out/libexec\"),g" \ - src/core/web_engine_library_info.cpp - sed -i -e '/lib_loader.*Load/s!"\(libudev\.so\)!"${lib.getLib systemd}/lib/\1!' \ src/3rdparty/chromium/device/udev_linux/udev?_loader.cc @@ -132,9 +125,11 @@ qtModule rec { substituteInPlace src/3rdparty/chromium/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc \ --replace "/usr/share/X11/xkb" "${xkeyboard_config}/share/X11/xkb" + # Patch library paths in sources substituteInPlace src/core/web_engine_library_info.cpp \ --replace "QLibraryInfo::path(QLibraryInfo::DataPath)" "\"$out\"" \ - --replace "QLibraryInfo::path(QLibraryInfo::TranslationsPath)" "\"$out/translations\"" + --replace "QLibraryInfo::path(QLibraryInfo::TranslationsPath)" "\"$out/translations\"" \ + --replace "QLibraryInfo::path(QLibraryInfo::LibraryExecutablesPath)" "\"$out/libexec\"" ''; cmakeFlags = [ @@ -232,6 +227,12 @@ qtModule rec { requiredSystemFeatures = [ "big-parallel" ]; + postInstall = '' + # This is required at runtime + mkdir $out/libexec + mv $dev/libexec/QtWebEngineProcess $out/libexec + ''; + meta = with lib; { broken = (stdenv.isLinux && stdenv.isAarch64); description = "A web engine based on the Chromium web browser"; |