diff options
author | Soner Sayakci <s.sayakci@shopware.com> | 2024-02-04 19:37:31 +0100 |
---|---|---|
committer | Soner Sayakci <s.sayakci@shopware.com> | 2024-02-04 20:08:39 +0100 |
commit | 8d83f2153ceec3c55a1540c8688bf0a1f945607f (patch) | |
tree | 6fcb96bcae2f2bb73c96b730e7c4fb9ce59e778d /pkgs/development | |
parent | d64bb036d15191817ded10e78f43cd4ba658e93e (diff) |
php82Extensions.zstd: init at 0.13.3
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/php-packages/zstd/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/php-packages/zstd/default.nix b/pkgs/development/php-packages/zstd/default.nix new file mode 100644 index 0000000000000..a9428ca477a0b --- /dev/null +++ b/pkgs/development/php-packages/zstd/default.nix @@ -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 ]; + }; +} |