From a06de115e8e2f77c8e2342d94afc9b15fc019e94 Mon Sep 17 00:00:00 2001 From: Joshua Trees Date: Mon, 19 Jun 2023 23:34:30 +0200 Subject: [PATCH] phpExtensions.uv: init at 0.3.0 (#238329) * phpExtensions.uv: init at 0.3.0 * Update pkgs/development/php-packages/uv/default.nix --------- Co-authored-by: Joshua Trees Co-authored-by: Pol Dellaiera --- pkgs/development/php-packages/uv/default.nix | 23 ++++++++++++++++++++ pkgs/top-level/php-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/php-packages/uv/default.nix diff --git a/pkgs/development/php-packages/uv/default.nix b/pkgs/development/php-packages/uv/default.nix new file mode 100644 index 000000000000..d681113ec6bc --- /dev/null +++ b/pkgs/development/php-packages/uv/default.nix @@ -0,0 +1,23 @@ +{ buildPecl, lib, fetchFromGitHub, libuv }: + +buildPecl rec { + pname = "uv"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "amphp"; + repo = "ext-uv"; + rev = "v${version}"; + hash = "sha256-RYb7rszHbdTLfBi66o9hVkFwX+7RlcxH5PAw5frjpFg="; + }; + + buildInputs = [ libuv ]; + + meta = with lib; { + description = "Interface to libuv for php"; + license = licenses.php301; + homepage = "https://github.com/amphp/ext-uv"; + maintainers = teams.php.members; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index c351b5a3f3d9..c796693168f2 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -294,6 +294,8 @@ lib.makeScope pkgs.newScope (self: with self; { swoole = callPackage ../development/php-packages/swoole { }; + uv = callPackage ../development/php-packages/uv { }; + xdebug = callPackage ../development/php-packages/xdebug { }; yaml = callPackage ../development/php-packages/yaml { };