depot/third_party/nixpkgs/pkgs/data/misc/v2ray-geoip/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

28 lines
683 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "v2ray-geoip";
version = "202202030030";
src = fetchFromGitHub {
owner = "v2fly";
repo = "geoip";
rev = "ca550e313a264e05c1fb22f293bc64c7432049ef";
sha256 = "sha256-gajlNfyaq8HwghBU6Gcq7lyqjVAmNcOgJKKsw5P+8Nc=";
};
installPhase = ''
runHook preInstall
install -m 0644 geoip.dat -D $out/share/v2ray/geoip.dat
runHook postInstall
'';
passthru.updateScript = ./update.sh;
meta = with lib; {
description = "GeoIP for V2Ray";
homepage = "https://github.com/v2fly/geoip";
license = licenses.cc-by-sa-40;
maintainers = with maintainers; [ nickcao ];
};
}