From f17751d00d0d5ef35c957c4a83822a57dae87910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Reyrol?= Date: Wed, 16 Aug 2023 12:36:42 +0200 Subject: [PATCH] phpExtensions.vld: init at 0.18.0 --- pkgs/development/php-packages/vld/default.nix | 30 +++++++++++++++++++ pkgs/top-level/php-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/php-packages/vld/default.nix diff --git a/pkgs/development/php-packages/vld/default.nix b/pkgs/development/php-packages/vld/default.nix new file mode 100644 index 000000000000..8e5f7dec4039 --- /dev/null +++ b/pkgs/development/php-packages/vld/default.nix @@ -0,0 +1,30 @@ +{ lib +, buildPecl +, fetchFromGitHub +}: + +let + version = "0.18.0"; +in buildPecl { + inherit version; + + pname = "vld"; + + src = fetchFromGitHub { + owner = "derickr"; + repo = "vld"; + rev = version; + hash = "sha256-1xMStPM3Z5qIkrRGfCKcYT6UdF1j150nt7IleirjdBM="; + }; + + # Tests relies on PHP 7.0 + doCheck = false; + + meta = { + changelog = "https://github.com/derickr/vld/releases/tag/${version}"; + description = "The Vulcan Logic Dumper hooks into the Zend Engine and dumps all the opcodes (execution units) of a script."; + homepage = "https://github.com/derickr/vld"; + license = lib.licenses.bsd2; + maintainers = with lib.maintainers; [ gaelreyrol ]; + }; +} diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index ec47a9c5e65b..42df62fb1fa5 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -304,6 +304,8 @@ lib.makeScope pkgs.newScope (self: with self; { uv = callPackage ../development/php-packages/uv { }; + vld = callPackage ../development/php-packages/vld { }; + xdebug = callPackage ../development/php-packages/xdebug { }; yaml = callPackage ../development/php-packages/yaml { };