Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 36 lines 915 B view raw
1{ 2 buildPecl, 3 lib, 4 fetchFromGitHub, 5 zlib, 6}: 7 8let 9 version = "0.4.16"; 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-1HOLMbCuV1bxi4DV26QOhi93VsBF3NJymk4SMn2ze4g="; 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 = "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}