mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
v2ray-rules-dat: init at 202606122311
This commit is contained in:
parent
1af84268c3
commit
235e50ae50
1 changed files with 37 additions and 0 deletions
37
pkgs/by-name/v2/v2ray-rules-dat/package.nix
Normal file
37
pkgs/by-name/v2/v2ray-rules-dat/package.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue