2020-10-16 20:44:37 +00:00
|
|
|
{ buildPecl, lib, pkgs }:
|
|
|
|
let
|
|
|
|
pname = "maxminddb";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "1.9.0";
|
2020-10-16 20:44:37 +00:00
|
|
|
in
|
|
|
|
buildPecl {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "maxmind";
|
|
|
|
repo = "MaxMind-DB-Reader-php";
|
|
|
|
rev = "v${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "sha256-sNG2FhnxzbHA4Lmzj97al1WFwSU70Mr1R2i5ygF1L6Y=";
|
2020-10-16 20:44:37 +00: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;
|
|
|
|
};
|
|
|
|
}
|