2019-10-02 21:05:07 +02:00
|
|
|
{ callPackage, fetchFromGitHub, fetchurl
|
|
|
|
, assetOverrides ? {}
|
|
|
|
, ... } @ args:
|
|
|
|
|
|
|
|
callPackage ./generic.nix (rec {
|
2020-07-08 19:20:02 +02:00
|
|
|
version = "4.26.0";
|
2019-10-02 21:05:07 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "v2ray";
|
|
|
|
repo = "v2ray-core";
|
|
|
|
rev = "v${version}";
|
2020-07-08 19:20:02 +02:00
|
|
|
sha256 = "069wm0n44i4l9pnrhwf60ssld65p6gfj4wfc68hrhj4zi4jvlyds";
|
2019-10-02 21:05:07 +02:00
|
|
|
};
|
|
|
|
|
2020-07-08 19:20:02 +02:00
|
|
|
vendorSha256 = "1520h69z0inbsrw5505cxbinqakvwcrdx3pisrwnp9lv4jsrzzsr";
|
2020-07-08 19:14:28 +02:00
|
|
|
|
2019-10-02 21:05:07 +02:00
|
|
|
assets = {
|
|
|
|
# MIT licensed
|
|
|
|
"geoip.dat" = let
|
2020-07-08 19:20:02 +02:00
|
|
|
geoipRev = "202007080004";
|
|
|
|
geoipSha256 = "1j4qg831dhxdy7brgxn4ca69cvwr3zsgizidlzasbkdn2rwai17y";
|
2019-10-02 21:05:07 +02:00
|
|
|
in fetchurl {
|
|
|
|
url = "https://github.com/v2ray/geoip/releases/download/${geoipRev}/geoip.dat";
|
|
|
|
sha256 = geoipSha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
# MIT licensed
|
|
|
|
"geosite.dat" = let
|
2020-07-08 19:20:02 +02:00
|
|
|
geositeRev = "20200708125309";
|
|
|
|
geositeSha256 = "1pr4137ri3v3r880yx5sqf2p7qfn8g7s555q51x3smkjzkyrskcy";
|
2019-10-02 21:05:07 +02:00
|
|
|
in fetchurl {
|
|
|
|
url = "https://github.com/v2ray/domain-list-community/releases/download/${geositeRev}/dlc.dat";
|
|
|
|
sha256 = geositeSha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // assetOverrides;
|
|
|
|
|
|
|
|
} // args)
|