1 { stdenv, pkgsBuildBuild, fetchFromGitHub, lib, nix-update-script }:
4 generator = pkgsBuildBuild.buildGoModule rec {
5 pname = "v2ray-domain-list-community";
6 version = "20241112092643";
7 src = fetchFromGitHub {
9 repo = "domain-list-community";
11 hash = "sha256-+S93tyYzkEMous+PkpR1yMAZmfSEc/HRqxUjXOeWIGk=";
13 vendorHash = "sha256-NLh14rXRci4hgDkBJVJDIDvobndB7KYRKAX7UjyqSsg=";
15 description = "community managed domain list";
16 homepage = "https://github.com/v2fly/domain-list-community";
17 license = licenses.mit;
18 maintainers = with maintainers; [ nickcao ];
23 inherit (generator) pname version src meta;
26 ${generator}/bin/domain-list-community -datapath $src/data
31 install -Dm644 dlc.dat $out/share/v2ray/geosite.dat
36 updateScript = nix-update-script { };