From 914deb3f993001aca67a705b2bb2963e8c1421fa Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sun, 20 Apr 2025 01:38:49 -0700 Subject: [PATCH] =?UTF-8?q?mozillavpn:=202.26.0=20=E2=86=92=202.27.0,=20pa?= =?UTF-8?q?tch=20for=20Qt=206.9=20compatibility?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Anders Kaseorg --- pkgs/by-name/mo/mozillavpn/package.nix | 30 ++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/mo/mozillavpn/package.nix b/pkgs/by-name/mo/mozillavpn/package.nix index e9890e4fcbdd..22487b17c307 100644 --- a/pkgs/by-name/mo/mozillavpn/package.nix +++ b/pkgs/by-name/mo/mozillavpn/package.nix @@ -4,6 +4,7 @@ cargo, cmake, fetchFromGitHub, + fetchpatch, go, lib, libcap, @@ -22,15 +23,36 @@ stdenv.mkDerivation (finalAttrs: { pname = "mozillavpn"; - version = "2.26.0"; + version = "2.27.0"; src = fetchFromGitHub { owner = "mozilla-mobile"; repo = "mozilla-vpn-client"; tag = "v${finalAttrs.version}"; fetchSubmodules = true; - hash = "sha256-BKD8X4nPLyTtY0x06nCSRRK36XKucpnhvjJN8aZssUs="; + hash = "sha256-TfiEc5Lptr0ntp4buEEWbQTvNkVjZbdMWDv8CEZa6IM="; }; - patches = [ ]; + patches = [ + # Provide default args for LottieStatus::changed so moc can call it (#10420) + (fetchpatch { + url = "https://github.com/mozilla-mobile/mozilla-vpn-client/commit/e5abe5714a5b506e398c088d21672f00d6f93240.patch"; + hash = "sha256-DU5wQ1DDF8DbmMIlohoEIDJ7/9+9GVwrvsr51T9bGx8="; + }) + # Remove Qt.labls.qmlmodels usage (#10422) + (fetchpatch { + url = "https://github.com/mozilla-mobile/mozilla-vpn-client/commit/4497972b1bf7b7f215dc6c1227d76d6825f5b958.patch"; + hash = "sha256-RPRdARM/jXSHmTGGjiOrfJ7KVejp3JmUfsN5pmKYPuY="; + }) + # Qt compat: Make sure to include what we use + (fetchpatch { + url = "https://github.com/mozilla-mobile/mozilla-vpn-client/commit/0909d43447a7ddbc6ec20d108637524552848bd6.patch"; + hash = "sha256-Hpn69hQxa269XH+Ku/MYD2GwdFhfCX4yoVRCEDfIOKc="; + }) + # Use QDesktopUnixServices after qt 6.9.0 + (fetchpatch { + url = "https://github.com/mozilla-mobile/mozilla-vpn-client/pull/10424/commits/81e66044388459ffe2b08804ab5a326586ac7113.patch"; + hash = "sha256-+v3NoTAdkjKEyBPbbJZQ2d11hJMyE3E4B9uYUerVa7c="; + }) + ]; netfilter = buildGoModule { pname = "${finalAttrs.pname}-netfilter"; @@ -45,7 +67,7 @@ stdenv.mkDerivation (finalAttrs: { cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) src patches; - hash = "sha256-tVTXlGO969qPR9/TbOJbDdOiwOI1PT11MvNYdLqgDlo="; + hash = "sha256-SGC+YT5ATV/ZaP/wrm3c31OQBw6Pk8ZSXjxEPFdP2f8="; }; buildInputs = [