mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
v2ray-domain-list-community: init at 20211103073737
This commit is contained in:
parent
71e05e9287
commit
aefde7c02a
2 changed files with 37 additions and 0 deletions
35
pkgs/data/misc/v2ray-domain-list-community/default.nix
Normal file
35
pkgs/data/misc/v2ray-domain-list-community/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ stdenv, buildGoModule, fetchFromGitHub, lib }:
|
||||
|
||||
let
|
||||
generator = buildGoModule rec {
|
||||
pname = "v2ray-domain-list-community";
|
||||
version = "20211103073737";
|
||||
src = fetchFromGitHub {
|
||||
owner = "v2fly";
|
||||
repo = "domain-list-community";
|
||||
rev = version;
|
||||
sha256 = "sha256-NYgEXbow16w+XMRjbQG1cIn/BjPbbcj+uzb4kcVR6eI=";
|
||||
};
|
||||
vendorSha256 = "sha256-JuLU9v1ukVfAEtz07tGk66st1+sO4SBz83BlK3IPQwU=";
|
||||
meta = with lib; {
|
||||
description = "community managed domain list";
|
||||
homepage = "https://github.com/v2fly/domain-list-community";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ nickcao ];
|
||||
};
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit (generator) pname version src meta;
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
${generator}/bin/domain-list-community -datapath $src/data --exportlists=category-ads-all,tld-cn,cn,tld-\!cn,geolocation-\!cn,apple,icloud
|
||||
runHook postBuild
|
||||
'';
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm644 dlc.dat $out/share/v2ray/geosite.dat
|
||||
runHook postInstall
|
||||
'';
|
||||
passthru.generator = generator;
|
||||
}
|
|
@ -10265,6 +10265,8 @@ with pkgs;
|
|||
|
||||
v2ray = callPackage ../tools/networking/v2ray { };
|
||||
|
||||
v2ray-domain-list-community = callPackage ../data/misc/v2ray-domain-list-community { };
|
||||
|
||||
vacuum = callPackage ../applications/networking/instant-messengers/vacuum {};
|
||||
|
||||
vampire = callPackage ../applications/science/logic/vampire {};
|
||||
|
|
Loading…
Reference in a new issue