mozillavpn: 2.14.1 → 2.15.0
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
5e871d8aa6
commit
dd5bc12f6b
1 changed files with 32 additions and 18 deletions
|
@ -2,6 +2,7 @@
|
||||||
, cargo
|
, cargo
|
||||||
, cmake
|
, cmake
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, go
|
, go
|
||||||
, lib
|
, lib
|
||||||
, libsecret
|
, libsecret
|
||||||
|
@ -23,43 +24,56 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "mozillavpn";
|
pname = "mozillavpn";
|
||||||
version = "2.14.1";
|
version = "2.15.0";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mozilla-mobile";
|
owner = "mozilla-mobile";
|
||||||
repo = "mozilla-vpn-client";
|
repo = "mozilla-vpn-client";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
hash = "sha256-xWm21guI+h0bKd/rEyxVMyxypCitLWEbVy7TaVBKh4o=";
|
hash = "sha256-eyYrA8ysfmXxlHNUBkGU9ioYrnbx3L1wP9byNz9L/MA=";
|
||||||
};
|
};
|
||||||
|
patches = [
|
||||||
|
# Force version downgrade for openssl and openssl-sys crates
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/mozilla-mobile/mozilla-vpn-client/commit/5911071ea37d12401af32dcdf2a542ca5049bf2f.patch";
|
||||||
|
hash = "sha256-b3yOgn3Et0sYpqzUUdmlGIbzZSz13Q9HW56hyQqRnHc=";
|
||||||
|
revert = true;
|
||||||
|
})
|
||||||
|
# [2.15] Restore qtglean/Cargo.lock
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/mozilla-mobile/mozilla-vpn-client/pull/7026/commits/13c1b77ee4249883a33b6ac240b3ca143b485ba1.patch";
|
||||||
|
hash = "sha256-L4D71zreDMLAIbP4x1as9QdNmMC1snUZSwlkKehg5yM=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
netfilter-go-modules = (buildGoModule {
|
netfilter-go-modules = (buildGoModule {
|
||||||
inherit pname version src;
|
inherit pname version src patches;
|
||||||
modRoot = "linux/netfilter";
|
modRoot = "linux/netfilter";
|
||||||
vendorHash = "sha256-Cmo0wnl0z5r1paaEf1MhCPbInWeoMhGjnxCxGh0cyO8=";
|
vendorHash = "sha256-Cmo0wnl0z5r1paaEf1MhCPbInWeoMhGjnxCxGh0cyO8=";
|
||||||
}).go-modules;
|
}).go-modules;
|
||||||
|
|
||||||
extensionBridgeDeps = rustPlatform.fetchCargoTarball {
|
extensionBridgeDeps = rustPlatform.fetchCargoTarball {
|
||||||
inherit src;
|
inherit src patches;
|
||||||
name = "${pname}-${version}-extension-bridge";
|
name = "${pname}-${version}-extension-bridge";
|
||||||
preBuild = "cd extension/bridge";
|
preBuild = "cd extension/bridge";
|
||||||
hash = "sha256-XW47EnNHm5JUWCqDU/iHB6ZRGny4v5x7Fs/1dv5TfzM=";
|
hash = "sha256-R/9ePEhc4qVgg3WC5ng+cD88K/N3PTnx4QWyaZZfRds=";
|
||||||
};
|
};
|
||||||
signatureDeps = rustPlatform.fetchCargoTarball {
|
signatureDeps = rustPlatform.fetchCargoTarball {
|
||||||
inherit src;
|
inherit src patches;
|
||||||
name = "${pname}-${version}-signature";
|
name = "${pname}-${version}-signature";
|
||||||
preBuild = "cd signature";
|
preBuild = "cd signature";
|
||||||
hash = "sha256-CNPL1Orn+ZbX0HL+CHMaoXPI9G8MoC+hY8pJTJlWH1U=";
|
hash = "sha256-27g2qnnUrxbThM1cHZquQgWQLWDtZaBnlf8PjvQtBJU=";
|
||||||
};
|
};
|
||||||
vpngleanDeps = rustPlatform.fetchCargoTarball {
|
qtgleanDeps = rustPlatform.fetchCargoTarball {
|
||||||
inherit src;
|
inherit src patches;
|
||||||
name = "${pname}-${version}-vpnglean";
|
name = "${pname}-${version}-qtglean";
|
||||||
preBuild = "cd vpnglean";
|
preBuild = "cd qtglean";
|
||||||
hash = "sha256-5vazbCqzJG6iA0MFaTNha42jb1pgLhr0P9I8rQxSKtw=";
|
hash = "sha256-cW+nf+Dho+eSzOBo3xhxki7NXpg0wd5ZM9OMA6iOUl4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
inherit pname version src;
|
inherit pname version src patches;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libsecret
|
libsecret
|
||||||
|
@ -95,9 +109,9 @@ stdenv.mkDerivation {
|
||||||
signatureDepsCopy="$cargoDepsCopy"
|
signatureDepsCopy="$cargoDepsCopy"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
pushd source/vpnglean
|
pushd source/qtglean
|
||||||
cargoDeps='${vpngleanDeps}' cargoSetupPostUnpackHook
|
cargoDeps='${qtgleanDeps}' cargoSetupPostUnpackHook
|
||||||
vpngleanDepsCopy="$cargoDepsCopy"
|
qtgleanDepsCopy="$cargoDepsCopy"
|
||||||
popd
|
popd
|
||||||
'';
|
'';
|
||||||
dontCargoSetupPostUnpack = true;
|
dontCargoSetupPostUnpack = true;
|
||||||
|
@ -128,8 +142,8 @@ stdenv.mkDerivation {
|
||||||
cargoDepsCopy="$signatureDepsCopy" cargoSetupPostPatchHook
|
cargoDepsCopy="$signatureDepsCopy" cargoSetupPostPatchHook
|
||||||
popd
|
popd
|
||||||
|
|
||||||
pushd vpnglean
|
pushd qtglean
|
||||||
cargoDepsCopy="$vpngleanDepsCopy" cargoSetupPostPatchHook
|
cargoDepsCopy="$qtgleanDepsCopy" cargoSetupPostPatchHook
|
||||||
popd
|
popd
|
||||||
|
|
||||||
cargoSetupPostPatchHook() { true; }
|
cargoSetupPostPatchHook() { true; }
|
||||||
|
|
Loading…
Reference in a new issue