2021-02-27 11:29:20 +01:00
|
|
|
{ buildPecl, lib, fetchFromGitHub, libmaxminddb }:
|
2020-10-11 19:05:50 +02:00
|
|
|
let
|
|
|
|
pname = "maxminddb";
|
2021-06-10 08:22:02 +02:00
|
|
|
version = "1.10.1";
|
2020-10-11 19:05:50 +02:00
|
|
|
in
|
|
|
|
buildPecl {
|
|
|
|
inherit pname version;
|
|
|
|
|
2021-02-27 11:29:20 +01:00
|
|
|
src = fetchFromGitHub {
|
2020-10-11 19:05:50 +02:00
|
|
|
owner = "maxmind";
|
|
|
|
repo = "MaxMind-DB-Reader-php";
|
|
|
|
rev = "v${version}";
|
2021-06-10 08:22:02 +02:00
|
|
|
sha256 = "1m5y733x4ykldi1pym54mdahfwfnwy2r1n6fnndwi8jz9px9pa5k";
|
2020-10-11 19:05:50 +02:00
|
|
|
};
|
|
|
|
|
2021-02-27 11:29:20 +01:00
|
|
|
buildInputs = [ libmaxminddb ];
|
2020-10-11 19:05:50 +02:00
|
|
|
sourceRoot = "source/ext";
|
|
|
|
|
2021-02-27 11:29:20 +01:00
|
|
|
meta = with lib; {
|
2020-10-11 19:05:50 +02:00
|
|
|
description = "C extension that is a drop-in replacement for MaxMind\\Db\\Reader";
|
|
|
|
license = with licenses; [ asl20 ];
|
2021-06-08 11:50:05 +02:00
|
|
|
homepage = "https://github.com/maxmind/MaxMind-DB-Reader-php";
|
2020-10-11 19:05:50 +02:00
|
|
|
maintainers = with maintainers; [ ajs124 das_j ] ++ teams.php.members;
|
|
|
|
};
|
|
|
|
}
|