Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11 28 lines 691 B view raw
1{ buildPecl, lib, fetchFromGitHub, libmaxminddb }: 2let 3 pname = "maxminddb"; 4 version = "1.11.0"; 5in 6buildPecl { 7 inherit pname version; 8 9 src = fetchFromGitHub { 10 owner = "maxmind"; 11 repo = "MaxMind-DB-Reader-php"; 12 rev = "v${version}"; 13 sha256 = "sha256-Dw1+pYJmZ3U2+rgSOEkx4a6HB8FebSr7YZodOjSipjI="; 14 }; 15 16 prePatch = '' 17 cd ext 18 ''; 19 20 buildInputs = [ libmaxminddb ]; 21 22 meta = with lib; { 23 description = "C extension that is a drop-in replacement for MaxMind\\Db\\Reader"; 24 license = with licenses; [ asl20 ]; 25 homepage = "https://github.com/maxmind/MaxMind-DB-Reader-php"; 26 maintainers = with maintainers; [ ajs124 das_j ] ++ teams.php.members; 27 }; 28}