php.extensions.apcu: update src attribute

So it can be automatically updated with `nix-update`
This commit is contained in:
Pol Dellaiera 2022-12-25 21:10:22 +01:00
parent 0dcce69be6
commit 51e1f61039
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA

View File

@ -1,10 +1,17 @@
{ buildPecl, lib, pcre2 }:
{ buildPecl, lib, pcre2, fetchFromGitHub }:
buildPecl {
let
version = "5.1.22";
in buildPecl {
inherit version;
pname = "apcu";
version = "5.1.22";
sha256 = "sha256-AQoNj9ES4e16UqNWGR2jaWprdjGUI/ew396u6vy0Gh4=";
src = fetchFromGitHub {
owner = "krakjoe";
repo = "apcu";
rev = "v${version}";
sha256 = "sha256-L4a+/kWT95a1Km+FzFNiAaBw8enU6k4ZiCFRErjj9o8=";
};
buildInputs = [ pcre2 ];
doCheck = true;
@ -14,6 +21,7 @@ buildPecl {
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";