Merge pull request #259383 from bobby285271/upd/webkitgtk

authored by maxine and committed by GitHub 4d675aec 5fa3ea86

+5 -8
+4 -7
pkgs/development/libraries/webkitgtk/default.nix
··· 27 , libxkbcommon 28 , libavif 29 , libepoxy 30 , at-spi2-core 31 , libxml2 32 , libsoup ··· 34 , libxslt 35 , harfbuzz 36 , libpthreadstubs 37 - , pcre 38 , nettle 39 , libtasn1 40 , p11-kit ··· 51 , openjpeg 52 , geoclue2 53 , sqlite 54 - , enableGLES ? true 55 , gst-plugins-base 56 , gst-plugins-bad 57 , woff2 ··· 71 72 stdenv.mkDerivation (finalAttrs: { 73 pname = "webkitgtk"; 74 - version = "2.40.5"; 75 name = "${finalAttrs.pname}-${finalAttrs.version}+abi=${if lib.versionAtLeast gtk3.version "4.0" then "6.0" else "4.${if lib.versions.major libsoup.version == "2" then "0" else "1"}"}"; 76 77 outputs = [ "out" "dev" "devdoc" ]; ··· 82 83 src = fetchurl { 84 url = "https://webkitgtk.org/releases/webkitgtk-${finalAttrs.version}.tar.xz"; 85 - hash = "sha256-feBRomNmhiHZGmGl6xw3cdGnzskABD1K/vBsMmwWA38="; 86 }; 87 88 patches = lib.optionals stdenv.isLinux [ ··· 132 enchant2 133 libavif 134 libepoxy 135 gnutls 136 gst-plugins-bad 137 gst-plugins-base ··· 153 nettle 154 openjpeg 155 p11-kit 156 - pcre 157 sqlite 158 woff2 159 ] ++ (with xorg; [ ··· 219 "-DUSE_GTK4=ON" 220 ] ++ lib.optionals (!systemdSupport) [ 221 "-DENABLE_JOURNALD_LOG=OFF" 222 - ] ++ lib.optionals (stdenv.isLinux && enableGLES) [ 223 - "-DENABLE_GLES2=ON" 224 ]; 225 226 postPatch = ''
··· 27 , libxkbcommon 28 , libavif 29 , libepoxy 30 + , libjxl 31 , at-spi2-core 32 , libxml2 33 , libsoup ··· 35 , libxslt 36 , harfbuzz 37 , libpthreadstubs 38 , nettle 39 , libtasn1 40 , p11-kit ··· 51 , openjpeg 52 , geoclue2 53 , sqlite 54 , gst-plugins-base 55 , gst-plugins-bad 56 , woff2 ··· 70 71 stdenv.mkDerivation (finalAttrs: { 72 pname = "webkitgtk"; 73 + version = "2.42.1"; 74 name = "${finalAttrs.pname}-${finalAttrs.version}+abi=${if lib.versionAtLeast gtk3.version "4.0" then "6.0" else "4.${if lib.versions.major libsoup.version == "2" then "0" else "1"}"}"; 75 76 outputs = [ "out" "dev" "devdoc" ]; ··· 81 82 src = fetchurl { 83 url = "https://webkitgtk.org/releases/webkitgtk-${finalAttrs.version}.tar.xz"; 84 + hash = "sha256-b0H6yZidPuUcCMSN4dQ5ze3ey8dX40thgJh9mbFtJJk="; 85 }; 86 87 patches = lib.optionals stdenv.isLinux [ ··· 131 enchant2 132 libavif 133 libepoxy 134 + libjxl 135 gnutls 136 gst-plugins-bad 137 gst-plugins-base ··· 153 nettle 154 openjpeg 155 p11-kit 156 sqlite 157 woff2 158 ] ++ (with xorg; [ ··· 218 "-DUSE_GTK4=ON" 219 ] ++ lib.optionals (!systemdSupport) [ 220 "-DENABLE_JOURNALD_LOG=OFF" 221 ]; 222 223 postPatch = ''
+1 -1
pkgs/development/libraries/webkitgtk/fdo-backend-path.patch
··· 3 @@ -84,7 +84,7 @@ void WebProcessPool::platformInitializeWebProcess(const WebProcessProxy& process 4 5 #if PLATFORM(WAYLAND) 6 - if (WebCore::PlatformDisplay::sharedDisplay().type() == WebCore::PlatformDisplay::Type::Wayland) { 7 - wpe_loader_init("libWPEBackend-fdo-1.0.so.1"); 8 + wpe_loader_init("@wpebackend_fdo@/lib/libWPEBackend-fdo-1.0.so.1"); 9 if (AcceleratedBackingStoreWayland::checkRequirements()) {
··· 3 @@ -84,7 +84,7 @@ void WebProcessPool::platformInitializeWebProcess(const WebProcessProxy& process 4 5 #if PLATFORM(WAYLAND) 6 + if (WebCore::PlatformDisplay::sharedDisplay().type() == WebCore::PlatformDisplay::Type::Wayland && parameters.dmaBufRendererBufferMode.isEmpty()) { 7 - wpe_loader_init("libWPEBackend-fdo-1.0.so.1"); 8 + wpe_loader_init("@wpebackend_fdo@/lib/libWPEBackend-fdo-1.0.so.1"); 9 if (AcceleratedBackingStoreWayland::checkRequirements()) {