[Backport release-26.05] v2ray-rules-dat: init at 202606122311 (#532994)

This commit is contained in:
Sizhe Zhao 2026-06-19 01:16:52 +00:00 committed by GitHub
commit 6e71aa3cc2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,37 @@
{
stdenvNoCC,
fetchurl,
lib,
}:
let
version = "202606122311";
geoipDat = fetchurl {
url = "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/download/${version}/geoip.dat";
hash = "sha256-iGGpeUaWtIH7AEPueCssQOgL/Ia7nkLFvWnAj1SDsbU=";
};
geositeDat = fetchurl {
url = "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/download/${version}/geosite.dat";
hash = "sha256-/c/3OjfALveNnHS9NxonTeOiZyud6U/X4WHrGZSOs7Q=";
};
in
stdenvNoCC.mkDerivation {
pname = "v2ray-rules-dat";
inherit version;
__structuredAttrs = true;
strictDeps = true;
dontUnpack = true;
installPhase = ''
install -Dm444 ${geoipDat} $out/share/v2ray/geoip.dat
install -Dm444 ${geositeDat} $out/share/v2ray/geosite.dat
'';
meta = {
description = "Enhanced edition of V2Ray rules dat files";
homepage = "https://github.com/Loyalsoldier/v2ray-rules-dat";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ nix-julia ];
};
}