about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/php-packages/maxminddb/default.nix
blob: 9244bcbc1096777ac50539ff9ef9d48262b5dbc9 (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
{ buildPecl, lib, pkgs }:
let
  pname = "maxminddb";
  version = "1.8.0";
in
buildPecl {
  inherit pname version;

  src = pkgs.fetchFromGitHub {
    owner = "maxmind";
    repo = "MaxMind-DB-Reader-php";
    rev = "v${version}";
    sha256 = "0cpd8d1xnkxsrf28z25xzgkkf3wc13ia99v8f7hbl7csvnggs7nn";
  };

  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;
  };
}