php.extensions.redis: update src attribute

So it can be automatically updated with `nix-update`
This commit is contained in:
Pol Dellaiera 2022-12-25 20:50:55 +01:00
parent 5e4eb3caa1
commit 4c5efee1da
No known key found for this signature in database
GPG key ID: D476DFE9C67467CA

View file

@ -1,16 +1,24 @@
{ buildPecl, lib, php }:
{ buildPecl, lib, php, fetchFromGitHub }:
buildPecl {
let
version = "5.3.7";
in buildPecl {
inherit version;
pname = "redis";
version = "5.3.7";
sha256 = "sha256-uVgWbM2k9AvRfGmY+eIjkCGuZERnzYrVwV3vQgqtZbA=";
src = fetchFromGitHub {
repo = "phpredis";
owner = "phpredis";
rev = version;
sha256 = "sha256-Cc9Mtx28j3kpyV8Yq+JSYQt5XQnELaVjuUbkkbG45kw=";
};
internalDeps = with php.extensions; [
session
];
meta = with lib; {
changelog = "https://github.com/phpredis/phpredis/releases/tag/${version}";
description = "PHP extension for interfacing with Redis";
license = licenses.php301;
homepage = "https://github.com/phpredis/phpredis/";