php82Extensions.zstd: init at 0.13.3

This commit is contained in:
Soner Sayakci 2024-02-04 19:37:31 +01:00
parent d64bb036d1
commit 8d83f2153c
No known key found for this signature in database
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{ buildPecl, lib, zstd, pkg-config, fetchFromGitHub }:
let
version = "0.13.3";
in buildPecl {
inherit version;
pname = "zstd";
src = fetchFromGitHub {
owner = "kjdev";
repo = "php-ext-zstd";
rev = version;
hash = "sha256-jEuL93ScF0/FlfUvib6uZafOkIe0+VkWV/frpSjTkvY=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [ zstd ];
configureFlags = [
"--with-libzstd"
];
meta = with lib; {
description = "Zstd Extension for PHP";
license = licenses.mit;
homepage = "https://github.com/kjdev/php-ext-zstd";
maintainers = with lib.maintainers; [ shyim ];
};
}

View File

@ -343,6 +343,8 @@ lib.makeScope pkgs.newScope (self: with self; {
xdebug = callPackage ../development/php-packages/xdebug { };
yaml = callPackage ../development/php-packages/yaml { };
zstd = callPackage ../development/php-packages/zstd { };
} // lib.optionalAttrs config.allowAliases {
php-spx = throw "php-spx is deprecated, use spx instead";
} // (