phpspy: init at 0.6.0

This commit is contained in:
Gaël Reyrol 2023-11-29 09:44:58 +01:00
parent 9640178ef2
commit 40a5a96527
No known key found for this signature in database
GPG Key ID: DFB9B69A2C427F61
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,48 @@
{ lib
, stdenv
, fetchFromGitHub
, php
, testers
, phpPackages
}:
stdenv.mkDerivation (finalAttrs: {
pname = "phpspy";
version = "0.6.0";
src = fetchFromGitHub {
owner = "adsr";
repo = "phpspy";
rev = "v${finalAttrs.version}";
hash = "sha256-iQOeZLHRc5yUgXc6xz52t/6oc07eZfH5ZgzSdJBcaak=";
fetchSubmodules = true;
};
nativeBuildInputs = [ php.unwrapped ];
env.USE_ZEND = 1;
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp phpspy $out/bin
runHook postInstall
'';
passthru.tests.version = testers.testVersion {
version = "v${finalAttrs.version}";
package = phpPackages.phpspy;
command = "phpspy -v";
};
meta = with lib; {
description = "Low-overhead sampling profiler for PHP";
homepage = "https://github.com/adsr/phpspy";
license = licenses.mit;
mainProgram = "phpspy";
maintainers = with maintainers; [ gaelreyrol ];
platforms = [ "x86_64-linux" ];
};
})

View File

@ -208,6 +208,8 @@ lib.makeScope pkgs.newScope (self: with self; {
phpmd = callPackage ../development/php-packages/phpmd { };
phpspy = callPackage ../development/php-packages/phpspy { };
phpstan = callPackage ../development/php-packages/phpstan { };
psalm = callPackage ../development/php-packages/psalm { };