summaryrefslogtreecommitdiff
path: root/pkgs/development/php-packages/pinba/default.nix
blob: 0d45ac1867071806c9e5d2af1452fcf7b0acb12c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  buildPecl,
  lib,
  fetchFromGitHub,
}:

buildPecl rec {
  pname = "pinba";
  version = "1.1.2";

  src = fetchFromGitHub {
    owner = "tony2001";
    repo = "pinba_extension";
    rev = "RELEASE_${lib.replaceStrings [ "." ] [ "_" ] version}";
    sha256 = "0wqcqq6sb51wiawa37hbd1h9dbvmyyndzdvz87xqji7lpr9vn8jy";
  };

  # Fix GCC 14 build.
  # from incompatible pointer type [-Wincompatible-pointer-types
  env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";

  meta = {
    description = "PHP extension for Pinba";
    longDescription = ''
      Pinba is a MySQL storage engine that acts as a realtime monitoring and
      statistics server for PHP using MySQL as a read-only interface.
    '';
    license = lib.licenses.lgpl2Plus;
    homepage = "http://pinba.org/";
    teams = [ lib.teams.php ];
  };
}