phpExtensions.blackfire: init at 1.40.0
This commit is contained in:
parent
a07508c1d3
commit
956a43990e
63
pkgs/development/tools/misc/blackfire/php-probe.nix
Normal file
63
pkgs/development/tools/misc/blackfire/php-probe.nix
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchurl
|
||||||
|
, dpkg
|
||||||
|
, autoPatchelfHook
|
||||||
|
, php
|
||||||
|
, writeShellScript
|
||||||
|
, curl
|
||||||
|
, jq
|
||||||
|
, common-updater-scripts
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
soFile = {
|
||||||
|
"7.3" = "blackfire-20180731";
|
||||||
|
"7.4" = "blackfire-20190902";
|
||||||
|
}.${lib.versions.majorMinor php.version} or (throw "Unsupported PHP version.");
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
pname = "php-blackfire";
|
||||||
|
version = "1.41.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://packages.blackfire.io/debian/pool/any/main/b/blackfire-php/blackfire-php_${version}_amd64.deb";
|
||||||
|
sha256 = "0vbl48bccswk9ygb4sshn24cl33fk0xg8d1bcg7ihvdc45any9ww";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
dpkg
|
||||||
|
autoPatchelfHook
|
||||||
|
];
|
||||||
|
|
||||||
|
unpackPhase = ''
|
||||||
|
runHook preUnpack
|
||||||
|
|
||||||
|
dpkg-deb -x $src pkg
|
||||||
|
sourceRoot=pkg
|
||||||
|
|
||||||
|
runHook postUnpack
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
install -D usr/lib/blackfire-php/amd64/${soFile}${lib.optionalString php.ztsSupport "-zts"}.so $out/lib/php/extensions/blackfire.so
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = writeShellScript "update-${pname}" ''
|
||||||
|
export PATH="${lib.makeBinPath [ curl jq common-updater-scripts ]}"
|
||||||
|
update-source-version "$UPDATE_NIX_ATTR_PATH" "$(curl https://blackfire.io/api/v1/releases | jq .probe.php --raw-output)"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Blackfire Profiler PHP module";
|
||||||
|
homepage = "https://blackfire.io/";
|
||||||
|
license = licenses.unfree;
|
||||||
|
maintainers = with maintainers; [ jtojnar ];
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
};
|
||||||
|
}
|
@ -399,6 +399,8 @@ in
|
|||||||
meta.maintainers = lib.teams.php.members;
|
meta.maintainers = lib.teams.php.members;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
blackfire = pkgs.callPackage ../development/tools/misc/blackfire/php-probe.nix { inherit php; };
|
||||||
|
|
||||||
couchbase = buildPecl rec {
|
couchbase = buildPecl rec {
|
||||||
version = "2.6.1";
|
version = "2.6.1";
|
||||||
pname = "couchbase";
|
pname = "couchbase";
|
||||||
|
Loading…
Reference in New Issue
Block a user