summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2025-02-02 08:54:28 -0500
committerGitHub <noreply@github.com>2025-02-02 08:54:28 -0500
commitda940e8bd7c1cfedaa344600804b4829604d88bd (patch)
tree34947038aa5a7f51d62c39ed569d5a3e76c581cf
parentMerge: [Backport release-24.11] matrix-synapse: 1.122.0 -> 1.123.0 (#378663) (diff)
parentmozillavpn: Switch rev to tag (diff)
downloadnixpkgs-da940e8bd7c1cfedaa344600804b4829604d88bd.tar.gz
[Backport release-24.11] mozillavpn: 2.24.3 → 2.25.0 (#378648)
-rw-r--r--pkgs/by-name/mo/mozillavpn/package.nix38
1 files changed, 15 insertions, 23 deletions
diff --git a/pkgs/by-name/mo/mozillavpn/package.nix b/pkgs/by-name/mo/mozillavpn/package.nix
index 8a5f309fb7fb..fee0f352c735 100644
--- a/pkgs/by-name/mo/mozillavpn/package.nix
+++ b/pkgs/by-name/mo/mozillavpn/package.nix
@@ -4,7 +4,6 @@
cargo,
cmake,
fetchFromGitHub,
- fetchpatch,
go,
lib,
libcap,
@@ -23,27 +22,15 @@
stdenv.mkDerivation (finalAttrs: {
pname = "mozillavpn";
- version = "2.24.3";
+ version = "2.25.0";
src = fetchFromGitHub {
owner = "mozilla-mobile";
repo = "mozilla-vpn-client";
- rev = "v${finalAttrs.version}";
+ tag = "v${finalAttrs.version}";
fetchSubmodules = true;
- hash = "sha256-GRt0diDt8bEeMfDwiEtYyR+20/bJAVcDal9eGfvk340=";
+ hash = "sha256-XunvADSdLA6jFVjXTAtmYvC1i5ZE7WYaCTvlAd8C1ko=";
};
- patches = [
- # Fix build errors from deprecated `QByteArray::count()`, `QVariant::type()`, `QEventPoint::pos()` (#9961)
- (fetchpatch {
- url = "https://github.com/mozilla-mobile/mozilla-vpn-client/commit/b4077b9927d9208118e81694dce490dac2f0e76f.patch";
- hash = "sha256-Vx7aHEBxubthqsmH37ZZDJDPI9jE9vS/p+JNJP6eUlI=";
- })
- # Re:#9966 Fix Crash in MZFlickable
- (fetchpatch {
- url = "https://github.com/mozilla-mobile/mozilla-vpn-client/pull/9984/commits/485a2ad8feab6b1dee7c672ce03736d819fd9d37.patch";
- includes = [ "nebula/ui/components/MZFlickable.qml" ];
- hash = "sha256-fnOXBTsuQC3kqAvHgoJ7rRGX5ra0R/MO8M9Ysys/l7Q=";
- })
- ];
+ patches = [ ];
netfilter = buildGoModule {
pname = "${finalAttrs.pname}-netfilter";
@@ -56,9 +43,9 @@ stdenv.mkDerivation (finalAttrs: {
vendorHash = "sha256-Cmo0wnl0z5r1paaEf1MhCPbInWeoMhGjnxCxGh0cyO8=";
};
- cargoDeps = rustPlatform.fetchCargoTarball {
+ cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) src patches;
- hash = "sha256-ryJFvnJIiDKf2EqlzHj79hSPYrD+3UtZ5lT/QeFv6V0=";
+ hash = "sha256-HaOqhjDodn9z0XQMsxJAMKrs1s7l2cJCIzHECjwnA5A=";
};
buildInputs = [
@@ -89,13 +76,18 @@ stdenv.mkDerivation (finalAttrs: {
];
postPatch = ''
+ substituteInPlace scripts/cmake/addons.cmake \
+ --replace-fail 'set(ADDON_BUILD_ARGS ' 'set(ADDON_BUILD_ARGS -q ${qt6.qttools.dev}/bin '
+
substituteInPlace src/cmake/linux.cmake \
- --replace '/etc/xdg/autostart' "$out/etc/xdg/autostart" \
- --replace '/usr/share/dbus-1' "$out/share/dbus-1" \
- --replace '${"$"}{SYSTEMD_UNIT_DIR}' "$out/lib/systemd/system"
+ --replace-fail '/usr/share/dbus-1' "$out/share/dbus-1" \
+ --replace-fail '${"$"}{SYSTEMD_UNIT_DIR}' "$out/lib/systemd/system"
substituteInPlace extension/CMakeLists.txt \
- --replace '/etc' "$out/etc"
+ --replace-fail '/etc' "$out/etc"
+
+ substituteInPlace extension/socks5proxy/bin/CMakeLists.txt \
+ --replace-fail '${"$"}{SYSTEMD_UNIT_DIR}' "$out/lib/systemd/system"
ln -s '${finalAttrs.netfilter.goModules}' linux/netfilter/vendor
'';