mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
php.packages.phpspy: Add dependency needed for tracing & install flamegraph helper
This commit is contained in:
parent
00d80d1381
commit
7f5a1170d0
1 changed files with 19 additions and 3 deletions
|
@ -2,6 +2,9 @@
|
|||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
gnugrep,
|
||||
binutils,
|
||||
makeBinaryWrapper,
|
||||
php,
|
||||
testers,
|
||||
phpPackages,
|
||||
|
@ -19,19 +22,32 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ php.unwrapped ];
|
||||
nativeBuildInputs = [
|
||||
makeBinaryWrapper
|
||||
php.unwrapped
|
||||
];
|
||||
|
||||
env.USE_ZEND = 1;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
cp phpspy $out/bin
|
||||
install -Dt "$out/bin" phpspy stackcollapse-phpspy.pl
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram "$out/bin/phpspy" \
|
||||
--prefix PATH : "${
|
||||
lib.makeBinPath [
|
||||
gnugrep
|
||||
# for objdump
|
||||
binutils
|
||||
]
|
||||
}"
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
version = "v${finalAttrs.version}";
|
||||
package = phpPackages.phpspy;
|
||||
|
|
Loading…
Reference in a new issue