2019-10-02 20:05:07 +01:00
|
|
|
{ callPackage, fetchFromGitHub, fetchurl
|
|
|
|
, assetOverrides ? {}
|
|
|
|
, ... } @ args:
|
|
|
|
|
|
|
|
callPackage ./generic.nix (rec {
|
2020-01-21 13:51:44 +00:00
|
|
|
version = "4.22.1";
|
2019-10-02 20:05:07 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "v2ray";
|
|
|
|
repo = "v2ray-core";
|
|
|
|
rev = "v${version}";
|
2020-01-21 13:51:44 +00:00
|
|
|
sha256 = "0l4rg9galjcm6dzv7sapnim9a02z7pv354mk5mwqndznii6nkr73";
|
2019-10-02 20:05:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
assets = {
|
|
|
|
# MIT licensed
|
|
|
|
"geoip.dat" = let
|
2020-01-21 13:51:44 +00:00
|
|
|
geoipRev = "202001210102";
|
|
|
|
geoipSha256 = "1wxhrhrigjqzpy5w8yj7yd9ib245xwhqys2pf9prdknq71piyziz";
|
2019-10-02 20:05:07 +01:00
|
|
|
in fetchurl {
|
|
|
|
url = "https://github.com/v2ray/geoip/releases/download/${geoipRev}/geoip.dat";
|
|
|
|
sha256 = geoipSha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
# MIT licensed
|
|
|
|
"geosite.dat" = let
|
2020-01-21 13:51:44 +00:00
|
|
|
geositeRev = "202001211332";
|
|
|
|
geositeSha256 = "06qlbjxk21lhyh5l3pd8l4m9rdl7sjh2jriz51zihaqx4417f0m7";
|
2019-10-02 20:05:07 +01:00
|
|
|
in fetchurl {
|
|
|
|
url = "https://github.com/v2ray/domain-list-community/releases/download/${geositeRev}/dlc.dat";
|
|
|
|
sha256 = geositeSha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // assetOverrides;
|
|
|
|
|
|
|
|
} // args)
|