diff --git a/pkgs/development/php-packages/redis/default.nix b/pkgs/development/php-packages/redis/default.nix index b54d85b73ecb..42cc89b4874c 100644 --- a/pkgs/development/php-packages/redis/default.nix +++ b/pkgs/development/php-packages/redis/default.nix @@ -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/";