3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/v2ray/default.nix

37 lines
960 B
Nix
Raw Normal View History

2019-10-02 20:05:07 +01:00
{ callPackage, fetchFromGitHub, fetchurl
, assetOverrides ? {}
, ... } @ args:
callPackage ./generic.nix (rec {
2020-06-01 17:32:24 +01:00
version = "4.23.3";
2019-10-02 20:05:07 +01:00
src = fetchFromGitHub {
owner = "v2ray";
repo = "v2ray-core";
rev = "v${version}";
2020-06-01 17:32:24 +01:00
sha256 = "1b0cxrpgkmgas7pwxglsvgcig8rnhffkf990b42z7awji5lw055v";
2019-10-02 20:05:07 +01:00
};
assets = {
# MIT licensed
"geoip.dat" = let
2020-05-31 19:12:30 +01:00
geoipRev = "202005270003";
geoipSha256 = "10gf69hr32p4bpl5j8r46v8xzhpcgm70xbcdxm1a8l0jwyj0infs";
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-05-31 19:12:30 +01:00
geositeRev = "202005292154";
geositeSha256 = "0w6l0q8y14in5f4a406blpprqq6p438gpclnlfz7y2hkh5zf36cr";
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)