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