depot/third_party/nixpkgs/pkgs/development/php-packages/spx/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

36 lines
915 B
Nix

{
buildPecl,
lib,
fetchFromGitHub,
zlib,
}:
let
version = "0.4.17";
in
buildPecl {
inherit version;
pname = "spx";
src = fetchFromGitHub {
owner = "NoiseByNorthwest";
repo = "php-spx";
rev = "v${version}";
hash = "sha256-MH/0G9KKmwcVsJKpe6uE1xjvykBEWuYU0DIOGfXiLAw=";
};
configureFlags = [ "--with-zlib-dir=${zlib.dev}" ];
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 = "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 ];
};
}