mozillavpn: 2.24.3 → 2.25.0 (#378130)

This commit is contained in:
Sandro
2025-02-01 22:14:55 +01:00
committed by GitHub
+15 -23
View File
@@ -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
'';