summary refs log tree commit diff
path: root/pkgs/development/libraries/qt-6/modules/qtwebengine.nix
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-06-04 15:12:16 +0200
committerGitHub <noreply@github.com>2022-06-04 15:12:16 +0200
commitbb0c96dbd81e5c3d5b85b8a55eeecb830c8bdfbd (patch)
tree8211be6d40df07dcbf22f740860cc199b01f4f70 /pkgs/development/libraries/qt-6/modules/qtwebengine.nix
parent179039488e2c8c31b7c6567c57bc78e0fea39777 (diff)
parent05a1cba10bbaa866572a86b1cdfa743acd21e024 (diff)
downloadnixpkgs-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.nix17
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";