nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildPecl,
3 lib,
4 pcre2,
5 fetchFromGitHub,
6}:
7
8let
9 version = "5.1.28";
10in
11buildPecl {
12 inherit version;
13 pname = "apcu";
14
15 src = fetchFromGitHub {
16 owner = "krakjoe";
17 repo = "apcu";
18 rev = "v${version}";
19 sha256 = "sha256-L8bGSPUuBsZXsJdeY6cVA0DvI2+0wEbNHH6IcfT+cFU=";
20 };
21
22 buildInputs = [ pcre2 ];
23 doCheck = true;
24 makeFlags = [ "phpincludedir=$(dev)/include" ];
25 outputs = [
26 "out"
27 "dev"
28 ];
29
30 meta = {
31 changelog = "https://github.com/krakjoe/apcu/releases/tag/v${version}";
32 description = "Userland cache for PHP";
33 homepage = "https://pecl.php.net/package/APCu";
34 license = lib.licenses.php301;
35 teams = [ lib.teams.php ];
36 };
37}