mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-08 14:40:07 +03:00
clash-geoip: init at 20220912
This commit is contained in:
parent
9a67aea9e1
commit
55ea5b4f17
27
pkgs/data/misc/clash-geoip/default.nix
Normal file
27
pkgs/data/misc/clash-geoip/default.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "clash-geoip";
|
||||
version = "20220912";
|
||||
|
||||
src = ./.;
|
||||
|
||||
data = fetchurl {
|
||||
url = "https://github.com/Dreamacro/maxmind-geoip/releases/download/${version}/Country.mmdb";
|
||||
sha256 = "sha256-YIQjuWbizheEE9kgL+hBS1GAGf2PbpaW5mu/lim9Q9A";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/etc/clash
|
||||
install -Dm 0644 $data -D $out/etc/clash/Country.mmdb
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A GeoLite2 data created by MaxMind";
|
||||
homepage = "https://github.com/Dreamacro/maxmind-geoip";
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ candyc1oud ];
|
||||
};
|
||||
}
|
@ -3338,6 +3338,8 @@ with pkgs;
|
||||
|
||||
clash = callPackage ../tools/networking/clash { };
|
||||
|
||||
clash-geoip = callPackage ../data/misc/clash-geoip { };
|
||||
|
||||
clasp = callPackage ../tools/misc/clasp { };
|
||||
|
||||
clevercsv = with python3Packages; toPythonApplication clevercsv;
|
||||
|
Loading…
Reference in New Issue
Block a user