evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / v2 / v2ray-domain-list-community / package.nix
blobc579941e42471eca9f4bde3ddce38f846e12238b
1 { stdenv, pkgsBuildBuild, fetchFromGitHub, lib, nix-update-script }:
3 let
4   generator = pkgsBuildBuild.buildGoModule rec {
5     pname = "v2ray-domain-list-community";
6     version = "20241013063848";
7     src = fetchFromGitHub {
8       owner = "v2fly";
9       repo = "domain-list-community";
10       rev = version;
11       hash = "sha256-YFsz+fT2LPU4TakQ2V1PtETmnXI5r3qAaERAqM9mX5g=";
12     };
13     vendorHash = "sha256-NLh14rXRci4hgDkBJVJDIDvobndB7KYRKAX7UjyqSsg=";
14     meta = with lib; {
15       description = "community managed domain list";
16       homepage = "https://github.com/v2fly/domain-list-community";
17       license = licenses.mit;
18       maintainers = with maintainers; [ nickcao ];
19     };
20   };
22 stdenv.mkDerivation {
23   inherit (generator) pname version src meta;
24   buildPhase = ''
25     runHook preBuild
26     ${generator}/bin/domain-list-community -datapath $src/data
27     runHook postBuild
28   '';
29   installPhase = ''
30     runHook preInstall
31     install -Dm644 dlc.dat $out/share/v2ray/geosite.dat
32     runHook postInstall
33   '';
34   passthru = {
35     inherit generator;
36     updateScript = nix-update-script { };
37   };