at 24.11-pre 36 lines 917 B view raw
1{ 2 buildPecl, 3 lib, 4 fetchFromGitHub, 5 zlib, 6}: 7 8let 9 version = "0.4.15"; 10in 11buildPecl { 12 inherit version; 13 pname = "spx"; 14 15 src = fetchFromGitHub { 16 owner = "NoiseByNorthwest"; 17 repo = "php-spx"; 18 rev = "v${version}"; 19 hash = "sha256-gw6wbPt1Qy0vNfT0flq7bxpnGU3SgJvPVhk8H0Imvx4="; 20 }; 21 22 configureFlags = [ "--with-zlib-dir=${zlib.dev}" ]; 23 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 ''; 28 29 meta = { 30 changelog = "https://github.com/NoiseByNorthwest/php-spx/releases/tag/${version}"; 31 description = "A 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 }; 36}