php82Extensions.zstd: init at 0.13.3
This commit is contained in:
parent
d64bb036d1
commit
8d83f2153c
32
pkgs/development/php-packages/zstd/default.nix
Normal file
32
pkgs/development/php-packages/zstd/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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";
|
||||
} // (
|
||||
|
Loading…
Reference in New Issue
Block a user