From b94195fc843a23a0be33a674297e145e463556a4 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Wed, 26 Jan 2022 21:17:02 +0100 Subject: [PATCH] phpExtensions.ds: init at 1.4.0 --- pkgs/development/php-packages/ds/default.nix | 19 +++++++++++++++++++ pkgs/top-level/php-packages.nix | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/development/php-packages/ds/default.nix diff --git a/pkgs/development/php-packages/ds/default.nix b/pkgs/development/php-packages/ds/default.nix new file mode 100644 index 000000000000..c6417fd5513a --- /dev/null +++ b/pkgs/development/php-packages/ds/default.nix @@ -0,0 +1,19 @@ +{ buildPecl, lib, pcre2, php }: + +buildPecl { + pname = "ds"; + + version = "1.4.0"; + sha256 = "1vwk5d27zd746767l8cvbcdr8r70v74vw0im38mlw1g85mc31fd9"; + + buildInputs = [ pcre2 ]; + + internalDeps = lib.optionals (lib.versionOlder php.version "8.0") [ php.extensions.json ]; + + meta = with lib; { + description = "An extension providing efficient data structures for PHP"; + license = licenses.mit; + homepage = "https://github.com/php-ds/ext-ds"; + maintainers = teams.php.members; + }; +} diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index 9180421746a5..cea65edb41fc 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -175,6 +175,8 @@ lib.makeScope pkgs.newScope (self: with self; { couchbase = callPackage ../development/php-packages/couchbase { }; + ds = callPackage ../development/php-packages/ds { }; + event = callPackage ../development/php-packages/event { }; gnupg = callPackage ../development/php-packages/gnupg { };