1{
2 buildPecl,
3 lib,
4 fetchFromGitHub,
5 judy,
6}:
7
8let
9 version = "3.1.0";
10in
11buildPecl {
12 inherit version;
13 pname = "memprof";
14
15 src = fetchFromGitHub {
16 owner = "arnaud-lb";
17 repo = "php-memory-profiler";
18 rev = version;
19 hash = "sha256-gq+txAU2Fw+Zm1aIu0lwPUHRqtccNcHFpp0fm3f7BnQ=";
20 };
21
22 configureFlags = [ "--with-judy-dir=${judy}" ];
23
24 doCheck = true;
25
26 meta = {
27 changelog = "https://github.com/arnaud-lb/php-memory-profiler/releases/tag/${version}";
28 description = "Memory profiler for PHP. Helps finding memory leaks in PHP scripts";
29 homepage = "https://github.com/arnaud-lb/php-memory-profiler";
30 license = lib.licenses.mit;
31 maintainers = with lib.maintainers; [ gaelreyrol ];
32 };
33}