summaryrefslogtreecommitdiff
path: root/pkgs/development/php-packages/spx/default.nix
blob: bb6e2b61c95b351d11b6e1755a83dfedc934891f (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
33
34
{
  buildPecl,
  lib,
  fetchFromGitHub,
  zlib,
}:

let
  version = "0.4.22";
in
buildPecl {
  inherit version;
  pname = "spx";

  src = fetchFromGitHub {
    owner = "NoiseByNorthwest";
    repo = "php-spx";
    tag = "v${version}";
    hash = "sha256-P53g/o4i+QETWdErZaGA3AREvnr8kL9h0B1BMQlKdFA=";
  };

  configureFlags = [
    "--with-zlib-dir=${zlib.dev}"
    "--with-spx-assets-dir=${placeholder "out"}/share/misc/php-spx/assets/"
  ];

  meta = {
    changelog = "https://github.com/NoiseByNorthwest/php-spx/releases/tag/v${version}";
    description = "Simple & straight-to-the-point PHP profiling extension with its built-in web UI";
    homepage = "https://github.com/NoiseByNorthwest/php-spx";
    license = lib.licenses.php301;
    maintainers = with lib.maintainers; [ piotrkwiecinski ];
  };
}