1{
2 buildPecl,
3 lib,
4 fetchFromGitHub,
5}:
6
7buildPecl rec {
8 pname = "pinba";
9 version = "1.1.2";
10
11 src = fetchFromGitHub {
12 owner = "tony2001";
13 repo = "pinba_extension";
14 rev = "RELEASE_${lib.replaceStrings [ "." ] [ "_" ] version}";
15 sha256 = "0wqcqq6sb51wiawa37hbd1h9dbvmyyndzdvz87xqji7lpr9vn8jy";
16 };
17
18 # Fix GCC 14 build.
19 # from incompatible pointer type [-Wincompatible-pointer-types
20 env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
21
22 meta = with lib; {
23 description = "PHP extension for Pinba";
24 longDescription = ''
25 Pinba is a MySQL storage engine that acts as a realtime monitoring and
26 statistics server for PHP using MySQL as a read-only interface.
27 '';
28 license = licenses.lgpl2Plus;
29 homepage = "http://pinba.org/";
30 teams = [ teams.php ];
31 };
32}