summaryrefslogtreecommitdiffstats
path: root/pkgs/development/php-packages/zstd/default.nix
blob: 00c1f61eb471bdeda6e2424dc2dc194079f7b8dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  buildPecl,
  lib,
  zstd,
  pkg-config,
  fetchFromGitHub,
}:

let
  version = "0.18.0";
in
buildPecl {
  inherit version;
  pname = "zstd";

  src = fetchFromGitHub {
    owner = "kjdev";
    repo = "php-ext-zstd";
    rev = version;
    hash = "sha256-3uTuAfHSeLKMbaRkUMUo3WWA4oGT7nXqXWlB1DUfzao=";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [ zstd ];

  configureFlags = [ "--with-libzstd" ];

  meta = {
    description = "Zstd Extension for PHP";
    license = lib.licenses.mit;
    homepage = "https://github.com/kjdev/php-ext-zstd";
    maintainers = [ ];
  };
}