1{
2 buildPecl,
3 lib,
4 pcre2,
5 php,
6 fetchFromGitHub,
7}:
8
9let
10 version = "1.6.0";
11in
12buildPecl {
13 inherit version;
14 pname = "ds";
15
16 src = fetchFromGitHub {
17 owner = "php-ds";
18 repo = "ext-ds";
19 rev = "v${version}";
20 sha256 = "sha256-c7MIqaPwIgdzKHRqR2km1uTQRrrr3OzDzopTbz5rLnE=";
21 };
22
23 buildInputs = [ pcre2 ];
24
25 meta = with lib; {
26 changelog = "https://github.com/php-ds/ext-ds/releases/tag/v${version}";
27 description = "Extension providing efficient data structures for PHP";
28 license = licenses.mit;
29 homepage = "https://github.com/php-ds/ext-ds";
30 teams = [ teams.php ];
31 };
32}