Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 25 lines 621 B view raw
1{ buildPecl, lib, pcre2, php, fetchFromGitHub }: 2 3let 4 version = "1.4.0"; 5in buildPecl { 6 inherit version; 7 pname = "ds"; 8 9 src = fetchFromGitHub { 10 owner = "php-ds"; 11 repo = "ext-ds"; 12 rev = "v${version}"; 13 sha256 = "sha256-IqNv2jVW1Hg1hV8H9vEyLT5BWsFkGHR+WlAOHJhlW84="; 14 }; 15 16 buildInputs = [ pcre2 ]; 17 18 meta = with lib; { 19 changelog = "https://github.com/php-ds/ext-ds/releases/tag/v${version}"; 20 description = "An extension providing efficient data structures for PHP"; 21 license = licenses.mit; 22 homepage = "https://github.com/php-ds/ext-ds"; 23 maintainers = teams.php.members; 24 }; 25}