Files
nixpkgs/pkgs/development/php-packages/maxminddb/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

37 lines
693 B
Nix

{
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 = {
description = "C extension that is a drop-in replacement for MaxMind\\Db\\Reader";
license = with lib.licenses; [ asl20 ];
homepage = "https://github.com/maxmind/MaxMind-DB-Reader-php";
teams = [
lib.teams.helsinki-systems
lib.teams.php
];
};
}