v2ray-geoip: 202403140037 -> 202501160051

This commit is contained in:
aucub
2025-01-16 23:48:17 +08:00
committed by aucub
parent b644cbec15
commit f1d2f76684
+13 -8
View File
@@ -11,22 +11,22 @@
let
generator = pkgsBuildBuild.buildGoModule rec {
pname = "v2ray-geoip";
version = "202403140037";
version = "202501160051";
src = fetchFromGitHub {
owner = "v2fly";
repo = "geoip";
rev = version;
hash = "sha256-nqobjgeDvD5RYvCVVd14XC/tb/+SVfvdQUFZ3gfeDrI=";
tag = version;
hash = "sha256-WSi7xsjKqQT37lzkOY1WZwvx5RXNKO3aMwnMiMBwMdA=";
};
vendorHash = "sha256-cuKcrYAzjIt6Z4wYg5R6JeL413NDwTub2fZndXEKdTo=";
vendorHash = "sha256-nvJsifXF6u3eWqd9X0kGZxASEs/LX2dQraZAwgnw060=";
meta = with lib; {
meta = {
description = "GeoIP for V2Ray";
homepage = "https://github.com/v2fly/geoip";
license = licenses.cc-by-sa-40;
maintainers = with maintainers; [ nickcao ];
license = lib.licenses.cc-by-sa-40;
maintainers = with lib.maintainers; [ nickcao ];
};
};
input = {
@@ -37,6 +37,7 @@ let
};
};
in
stdenvNoCC.mkDerivation {
inherit (generator) pname src;
inherit (dbip-country-lite) version;
@@ -52,13 +53,17 @@ stdenvNoCC.mkDerivation {
buildPhase = ''
runHook preBuild
${generator}/bin/geoip
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dm444 -t "$out/share/v2ray" output/dat/{cn,geoip-only-cn-private,geoip,private}.dat
install -Dm444 -t "$out/share/v2ray" output/{cn,geoip-only-cn-private,geoip,private}.dat
runHook postInstall
'';