567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
33 lines
617 B
Nix
33 lines
617 B
Nix
{
|
|
buildPecl,
|
|
lib,
|
|
pcre2,
|
|
php,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
let
|
|
version = "1.6.0";
|
|
in
|
|
buildPecl {
|
|
inherit version;
|
|
pname = "ds";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "php-ds";
|
|
repo = "ext-ds";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-c7MIqaPwIgdzKHRqR2km1uTQRrrr3OzDzopTbz5rLnE=";
|
|
};
|
|
|
|
buildInputs = [ pcre2 ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/php-ds/ext-ds/releases/tag/v${version}";
|
|
description = "Extension providing efficient data structures for PHP";
|
|
license = lib.licenses.mit;
|
|
homepage = "https://github.com/php-ds/ext-ds";
|
|
teams = [ lib.teams.php ];
|
|
};
|
|
}
|