Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 42 lines 804 B view raw
1{ 2 buildPecl, 3 lib, 4 pcre2, 5 fetchFromGitHub, 6}: 7 8let 9 version = "5.1.23"; 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-UDKLLCCnYJj/lCD8ZkkDf2WYZMoIbcP75+0/IXo4vdQ="; 20 }; 21 22 buildInputs = [ pcre2 ]; 23 doCheck = true; 24 checkTarget = "test"; 25 checkFlagsArray = [ 26 "REPORT_EXIT_STATUS=1" 27 "NO_INTERACTION=1" 28 ]; 29 makeFlags = [ "phpincludedir=$(dev)/include" ]; 30 outputs = [ 31 "out" 32 "dev" 33 ]; 34 35 meta = with lib; { 36 changelog = "https://github.com/krakjoe/apcu/releases/tag/v${version}"; 37 description = "Userland cache for PHP"; 38 homepage = "https://pecl.php.net/package/APCu"; 39 license = licenses.php301; 40 maintainers = teams.php.members; 41 }; 42}