mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
51e1f61039
So it can be automatically updated with `nix-update`
31 lines
775 B
Nix
31 lines
775 B
Nix
{ buildPecl, lib, pcre2, fetchFromGitHub }:
|
|
|
|
let
|
|
version = "5.1.22";
|
|
in buildPecl {
|
|
inherit version;
|
|
pname = "apcu";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "krakjoe";
|
|
repo = "apcu";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-L4a+/kWT95a1Km+FzFNiAaBw8enU6k4ZiCFRErjj9o8=";
|
|
};
|
|
|
|
buildInputs = [ pcre2 ];
|
|
doCheck = true;
|
|
checkTarget = "test";
|
|
checkFlagsArray = [ "REPORT_EXIT_STATUS=1" "NO_INTERACTION=1" ];
|
|
makeFlags = [ "phpincludedir=$(dev)/include" ];
|
|
outputs = [ "out" "dev" ];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/krakjoe/apcu/releases/tag/v${version}";
|
|
description = "Userland cache for PHP";
|
|
license = licenses.php301;
|
|
homepage = "https://pecl.php.net/package/APCu";
|
|
maintainers = teams.php.members;
|
|
};
|
|
}
|