Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
691 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
buildPecl,
lib,
fetchFromGitHub,
libmaxminddb,
}:
let
pname = "maxminddb";
version = "1.12.1";
in
buildPecl {
inherit pname version;
src = fetchFromGitHub {
owner = "maxmind";
repo = "MaxMind-DB-Reader-php";
rev = "v${version}";
sha256 = "sha256-VsQOztF4TN3XgJjf3mZa1/Y5+6ounbkLRAzawLSX+BI=";
};
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";
teams = [
teams.helsinki-systems
teams.php
];
};
}