depot/pkgs/development/php-packages/maxminddb/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

33 lines
696 B
Nix

{
buildPecl,
lib,
fetchFromGitHub,
libmaxminddb,
}:
let
pname = "maxminddb";
version = "1.11.1";
in
buildPecl {
inherit pname version;
src = fetchFromGitHub {
owner = "maxmind";
repo = "MaxMind-DB-Reader-php";
rev = "v${version}";
sha256 = "sha256-e22HVsD0YstGQiRch0zUUF5CY1zSuFCyU2anK9uGCY4=";
};
prePatch = ''
cd ext
'';
buildInputs = [ libmaxminddb ];
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 = teams.helsinki-systems.members ++ teams.php.members;
};
}