Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 buildPecl,
3 lib,
4 pcre2,
5 php,
6 fetchFromGitHub,
7}:
8
9let
10 version = "1.5.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-lL1PUjc4bMTsWm2th0wDxnMaGuVziBUtgK88bUJXuBY=";
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 maintainers = teams.php.members;
31 };
32}