diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2022-12-25 21:10:22 +0100 |
---|---|---|
committer | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2022-12-29 18:21:57 +0100 |
commit | 51e1f61039fb163a4bb2aff601010f6f1246b1a3 (patch) | |
tree | 660d29922b057d8a70789d985551fd0efbbf7a1e | |
parent | 0dcce69be6bca6e3bac7713567c917a7af52756a (diff) |
php.extensions.apcu: update `src` attribute
So it can be automatically updated with `nix-update`
-rw-r--r-- | pkgs/development/php-packages/apcu/default.nix | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/development/php-packages/apcu/default.nix b/pkgs/development/php-packages/apcu/default.nix index 2755c09d944cc..556d28ba0139b 100644 --- a/pkgs/development/php-packages/apcu/default.nix +++ b/pkgs/development/php-packages/apcu/default.nix @@ -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"; |