nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildPecl,
3 lib,
4 php,
5 fetchFromGitHub,
6}:
7
8let
9 version = "6.3.0";
10in
11buildPecl {
12 inherit version;
13 pname = "redis";
14
15 src = fetchFromGitHub {
16 repo = "phpredis";
17 owner = "phpredis";
18 rev = version;
19 hash = "sha256-mdphyUG4OUc1PBEA5Ub1X9afFDMJ5+HoXH4WnmeAKpE=";
20 };
21
22 internalDeps = with php.extensions; [ session ];
23
24 meta = {
25 changelog = "https://github.com/phpredis/phpredis/releases/tag/${version}";
26 description = "PHP extension for interfacing with Redis";
27 license = lib.licenses.php301;
28 homepage = "https://github.com/phpredis/phpredis/";
29 teams = [ lib.teams.php ];
30 };
31}