2020-10-11 19:05:50 +02:00
|
|
|
{ buildPecl, lib, pkgs }:
|
|
|
|
let
|
|
|
|
pname = "maxminddb";
|
2020-10-14 18:21:31 +02:00
|
|
|
version = "1.8.0";
|
2020-10-11 19:05:50 +02:00
|
|
|
in
|
|
|
|
buildPecl {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "maxmind";
|
|
|
|
repo = "MaxMind-DB-Reader-php";
|
|
|
|
rev = "v${version}";
|
2020-10-14 18:21:31 +02:00
|
|
|
sha256 = "0cpd8d1xnkxsrf28z25xzgkkf3wc13ia99v8f7hbl7csvnggs7nn";
|
2020-10-11 19:05:50 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pkgs.libmaxminddb ];
|
|
|
|
sourceRoot = "source/ext";
|
|
|
|
|
|
|
|
meta = with pkgs.lib; {
|
|
|
|
description = "C extension that is a drop-in replacement for MaxMind\\Db\\Reader";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ ajs124 das_j ] ++ teams.php.members;
|
|
|
|
};
|
|
|
|
}
|