v2ray: 4.34.0 -> 4.35.1
Also handle SRI hash produced by nix unstable in update script.
This commit is contained in:
parent
102eb68cee
commit
71ec323d09
@ -3,22 +3,22 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "4.34.0";
|
version = "4.35.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "v2fly";
|
owner = "v2fly";
|
||||||
repo = "v2ray-core";
|
repo = "v2ray-core";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0x6smffpvnrk76plnsk31qqznkyz06dh4sazncp2l3y9va8k2jb1";
|
sha256 = "07fih1hnnv1a4aj6sb63408vqf10bgk74lhqqv63lvm7gaz73srd";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "077jnjsmhzr0idrk7pifr5s2r9yjf1v9bvj177n2k2ln8w3wgx3g";
|
vendorSha256 = "sha256-+kI9p0lu4PbLe6jhWqTfRYXHFOOrKmY36LzdcQT9BWw=";
|
||||||
|
|
||||||
assets = {
|
assets = {
|
||||||
# MIT licensed
|
# MIT licensed
|
||||||
"geoip.dat" = let
|
"geoip.dat" = let
|
||||||
geoipRev = "202101070033";
|
geoipRev = "202103080146";
|
||||||
geoipSha256 = "11naj51pzchdrjmkp1dqzcby1i2fhbq0mncwm4d5q5mh3chyizsf";
|
geoipSha256 = "1qwmz5fxqqxcjw5jm9dvgpmbin2q69j9wdx4xv3pm8fc47wzx8w5";
|
||||||
in fetchurl {
|
in fetchurl {
|
||||||
url = "https://github.com/v2fly/geoip/releases/download/${geoipRev}/geoip.dat";
|
url = "https://github.com/v2fly/geoip/releases/download/${geoipRev}/geoip.dat";
|
||||||
sha256 = geoipSha256;
|
sha256 = geoipSha256;
|
||||||
@ -26,8 +26,8 @@ let
|
|||||||
|
|
||||||
# MIT licensed
|
# MIT licensed
|
||||||
"geosite.dat" = let
|
"geosite.dat" = let
|
||||||
geositeRev = "20210106164413";
|
geositeRev = "20210308021214";
|
||||||
geositeSha256 = "0chc7jb3yzgrrjkpd3s1rlim5qgf6j2kp952fvkhpwmnap86aip7";
|
geositeSha256 = "1fp787wlzdjn2gxx4zmqrqqzqcq4xd10pqx8q919fag0kkzdm23s";
|
||||||
in fetchurl {
|
in fetchurl {
|
||||||
url = "https://github.com/v2fly/domain-list-community/releases/download/${geositeRev}/dlc.dat";
|
url = "https://github.com/v2fly/domain-list-community/releases/download/${geositeRev}/dlc.dat";
|
||||||
sha256 = geositeSha256;
|
sha256 = geositeSha256;
|
||||||
@ -68,7 +68,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
in runCommand "v2ray-${version}" {
|
in runCommand "v2ray-${version}" {
|
||||||
inherit version;
|
inherit src version;
|
||||||
inherit (core) meta;
|
inherit (core) meta;
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
@ -61,7 +61,7 @@ set +o pipefail
|
|||||||
vendorSha256=$(
|
vendorSha256=$(
|
||||||
nix-build "$nixpkgs" -A v2ray --no-out-link 2>&1 |
|
nix-build "$nixpkgs" -A v2ray --no-out-link 2>&1 |
|
||||||
tee /dev/stderr |
|
tee /dev/stderr |
|
||||||
sed -nE 's/.*got:\s*sha256:(\w+)$/\1/p'
|
sed -nE 's/.*got:\s*(sha256\S+)$/\1/p'
|
||||||
)
|
)
|
||||||
[[ "$vendorSha256" ]]
|
[[ "$vendorSha256" ]]
|
||||||
sed --in-place \
|
sed --in-place \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user