1 { stdenv, pkgsBuildBuild, fetchFromGitHub, lib, nix-update-script }:
4 generator = pkgsBuildBuild.buildGoModule rec {
5 pname = "v2ray-domain-list-community";
6 version = "20241013063848";
7 src = fetchFromGitHub {
9 repo = "domain-list-community";
11 hash = "sha256-YFsz+fT2LPU4TakQ2V1PtETmnXI5r3qAaERAqM9mX5g=";
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 { };