2020-10-11 19:05:50 +02:00
|
|
|
{ buildPecl, lib, pkgs }:
|
|
|
|
let
|
|
|
|
pname = "maxminddb";
|
2021-02-13 05:22:17 +01:00
|
|
|
version = "1.10.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}";
|
2021-02-13 05:22:17 +01:00
|
|
|
sha256 = "sha256-2SnajDdO5uAYcuVpEbOuFlZzMxwo/EqFtUSr9XxT0KQ=";
|
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;
|
|
|
|
};
|
|
|
|
}
|