2021-03-09 03:18:52 +00:00
|
|
|
{ buildPecl, lib, fetchFromGitHub, libmaxminddb }:
|
2020-10-16 20:44:37 +00:00
|
|
|
let
|
|
|
|
pname = "maxminddb";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.11.1";
|
2020-10-16 20:44:37 +00:00
|
|
|
in
|
|
|
|
buildPecl {
|
|
|
|
inherit pname version;
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
src = fetchFromGitHub {
|
2020-10-16 20:44:37 +00:00
|
|
|
owner = "maxmind";
|
|
|
|
repo = "MaxMind-DB-Reader-php";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-e22HVsD0YstGQiRch0zUUF5CY1zSuFCyU2anK9uGCY4=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
prePatch = ''
|
|
|
|
cd ext
|
|
|
|
'';
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
buildInputs = [ libmaxminddb ];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
meta = with lib; {
|
2020-10-16 20:44:37 +00:00
|
|
|
description = "C extension that is a drop-in replacement for MaxMind\\Db\\Reader";
|
|
|
|
license = with licenses; [ asl20 ];
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/maxmind/MaxMind-DB-Reader-php";
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = teams.helsinki-systems.members ++ teams.php.members;
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
}
|