ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / v2 / v2ray-domain-list-community / package.nix
blob8eb9daf34fa73d22023204356211582be8115c31
1 { stdenv, pkgsBuildBuild, fetchFromGitHub, lib, nix-update-script }:
3 let
4   generator = pkgsBuildBuild.buildGoModule rec {
5     pname = "v2ray-domain-list-community";
6     version = "20241112092643";
7     src = fetchFromGitHub {
8       owner = "v2fly";
9       repo = "domain-list-community";
10       rev = version;
11       hash = "sha256-+S93tyYzkEMous+PkpR1yMAZmfSEc/HRqxUjXOeWIGk=";
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   };