From b245c98430f87c80dde19b9c340af9a53767ee2c Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 1 Oct 2024 15:19:22 -0700 Subject: [PATCH 1/3] mozillavpn: extract netfilter derivation for updateScript Signed-off-by: Anders Kaseorg (cherry picked from commit 2b59e8e4a33a309e7789e67dbb55ba0785a580b2) --- pkgs/by-name/mo/mozillavpn/package.nix | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/pkgs/by-name/mo/mozillavpn/package.nix b/pkgs/by-name/mo/mozillavpn/package.nix index 1394123696f32..6cf84daed8f01 100644 --- a/pkgs/by-name/mo/mozillavpn/package.nix +++ b/pkgs/by-name/mo/mozillavpn/package.nix @@ -31,17 +31,16 @@ stdenv.mkDerivation (finalAttrs: { }; patches = [ ]; - netfilterGoModules = - (buildGoModule { - inherit (finalAttrs) - pname - version - src - patches - ; - modRoot = "linux/netfilter"; - vendorHash = "sha256-Cmo0wnl0z5r1paaEf1MhCPbInWeoMhGjnxCxGh0cyO8="; - }).goModules; + netfilter = buildGoModule { + pname = "${finalAttrs.pname}-netfilter"; + inherit (finalAttrs) + version + src + patches + ; + modRoot = "linux/netfilter"; + vendorHash = "sha256-Cmo0wnl0z5r1paaEf1MhCPbInWeoMhGjnxCxGh0cyO8="; + }; cargoDeps = rustPlatform.fetchCargoTarball { inherit (finalAttrs) src patches; @@ -84,7 +83,7 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace extension/CMakeLists.txt \ --replace '/etc' "$out/etc" - ln -s '${finalAttrs.netfilterGoModules}' linux/netfilter/vendor + ln -s '${finalAttrs.netfilter.goModules}' linux/netfilter/vendor ''; cmakeFlags = [ From 5527334c0bd7eb2fee825c50e2db5f8339c37b7b Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 1 Oct 2024 15:01:16 -0700 Subject: [PATCH 2/3] mozillavpn: add updateScript Signed-off-by: Anders Kaseorg (cherry picked from commit 228cd97d9c213347885e497b6bc7bd1d89b21510) --- pkgs/by-name/mo/mozillavpn/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/mo/mozillavpn/package.nix b/pkgs/by-name/mo/mozillavpn/package.nix index 6cf84daed8f01..425c8bb03992e 100644 --- a/pkgs/by-name/mo/mozillavpn/package.nix +++ b/pkgs/by-name/mo/mozillavpn/package.nix @@ -1,4 +1,5 @@ { + _experimental-update-script-combinators, buildGoModule, cargo, cmake, @@ -9,6 +10,7 @@ libgcrypt, libgpg-error, libsecret, + nix-update-script, pkg-config, polkit, python3, @@ -100,6 +102,14 @@ stdenv.mkDerivation (finalAttrs: { (lib.makeBinPath [ wireguard-tools ]) ]; + passthru.updateScript = _experimental-update-script-combinators.sequence [ + (nix-update-script { }) + (nix-update-script { + attrPath = "mozillavpn.netfilter"; + extraArgs = [ "--version=skip" ]; + }) + ]; + meta = { description = "Client for the Mozilla VPN service"; mainProgram = "mozillavpn"; From 6a288da98d43b0b4558ddbad65c2897ff3817883 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 1 Oct 2024 15:05:00 -0700 Subject: [PATCH 3/3] =?UTF-8?q?mozillavpn:=202.24.0=20=E2=86=92=202.24.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Anders Kaseorg (cherry picked from commit 93a5b980b835ff5d2588e083f59b8eeff1782c5c) --- pkgs/by-name/mo/mozillavpn/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/mo/mozillavpn/package.nix b/pkgs/by-name/mo/mozillavpn/package.nix index 425c8bb03992e..d0af7ff2ed55c 100644 --- a/pkgs/by-name/mo/mozillavpn/package.nix +++ b/pkgs/by-name/mo/mozillavpn/package.nix @@ -23,13 +23,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "mozillavpn"; - version = "2.24.0"; + version = "2.24.1"; src = fetchFromGitHub { owner = "mozilla-mobile"; repo = "mozilla-vpn-client"; rev = "v${finalAttrs.version}"; fetchSubmodules = true; - hash = "sha256-iTnwx+KPZ5b8qT0fEMUCGQx1UyGVM4VCzooZqslGWtw="; + hash = "sha256-X2rtHAZ9vbWjuOmD3B/uPasUQ1Q+b4SkNqk4MqGMaYo="; }; patches = [ ];