xfce.xfce4-notes-plugin: Generate C code with newer Vala (#359006)
[NixPkgs.git] / pkgs / development / php-packages / spx / default.nix
blobd861eab67a0b55c1f647dcdf41e9a77b8c8de05b
2   buildPecl,
3   lib,
4   fetchFromGitHub,
5   zlib,
6 }:
8 let
9   version = "0.4.17";
11 buildPecl {
12   inherit version;
13   pname = "spx";
15   src = fetchFromGitHub {
16     owner = "NoiseByNorthwest";
17     repo = "php-spx";
18     rev = "v${version}";
19     hash = "sha256-MH/0G9KKmwcVsJKpe6uE1xjvykBEWuYU0DIOGfXiLAw=";
20   };
22   configureFlags = [ "--with-zlib-dir=${zlib.dev}" ];
24   preConfigure = ''
25     substituteInPlace Makefile.frag \
26       --replace '$(INSTALL_ROOT)$(prefix)/share/misc/php-spx/assets/web-ui' '${placeholder "out"}/share/misc/php-spx/assets/web-ui'
27   '';
29   meta = {
30     changelog = "https://github.com/NoiseByNorthwest/php-spx/releases/tag/${version}";
31     description = "Simple & straight-to-the-point PHP profiling extension with its built-in web UI";
32     homepage = "https://github.com/NoiseByNorthwest/php-spx";
33     license = lib.licenses.php301;
34     maintainers = with lib.maintainers; [ drupol ];
35   };