about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/php-packages/maxminddb/default.nix
blob: ae7ef3d0602f351004abac7969fe9357089cbb22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ buildPecl, lib, fetchFromGitHub, libmaxminddb }:
let
  pname = "maxminddb";
  version = "1.10.0";
in
buildPecl {
  inherit pname version;

  src = fetchFromGitHub {
    owner = "maxmind";
    repo = "MaxMind-DB-Reader-php";
    rev = "v${version}";
    sha256 = "sha256-2SnajDdO5uAYcuVpEbOuFlZzMxwo/EqFtUSr9XxT0KQ=";
  };

  buildInputs = [ libmaxminddb ];
  sourceRoot = "source/ext";

  meta = with lib; {
    description = "C extension that is a drop-in replacement for MaxMind\\Db\\Reader";
    license = with licenses; [ asl20 ];
    homepage = "https://github.com/maxmind/MaxMind-DB-Reader-php";
    maintainers = with maintainers; [ ajs124 das_j ] ++ teams.php.members;
  };
}