2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
buildPecl,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
zlib,
|
|
|
|
}:
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
let
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "0.4.15";
|
2024-05-15 15:35:15 +00:00
|
|
|
in
|
|
|
|
buildPecl {
|
2023-10-19 13:55:26 +00:00
|
|
|
inherit version;
|
2024-01-02 11:29:13 +00:00
|
|
|
pname = "spx";
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NoiseByNorthwest";
|
|
|
|
repo = "php-spx";
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-gw6wbPt1Qy0vNfT0flq7bxpnGU3SgJvPVhk8H0Imvx4=";
|
2023-10-19 13:55:26 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
configureFlags = [ "--with-zlib-dir=${zlib.dev}" ];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace Makefile.frag \
|
|
|
|
--replace '$(INSTALL_ROOT)$(prefix)/share/misc/php-spx/assets/web-ui' '${placeholder "out"}/share/misc/php-spx/assets/web-ui'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/NoiseByNorthwest/php-spx/releases/tag/${version}";
|
|
|
|
description = "A 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; [ drupol ];
|
|
|
|
};
|
|
|
|
}
|