Getting the redis extension available

Here is my replit.nix file:

{ pkgs }: {
    deps = [
        pkgs.wget
        pkgs.php82
        pkgs.php82Extensions.redis
        pkgs.php82Packages.composer
        pkgs.php81Extensions.redis
        pkgs.redis
    ];

    languages.php.package = pkgs.php82.buildEnv {
      extensions = ({ enabled, all }: enabled ++ (with all; [
        redis
      ]));
      extraConfig = ''
          memory_limit = 256m
      '';
  };
}

however, php -m | grep 'redis' doesn’t return anything.

Is there another way to get redis working? I was trying pecl as well, but that was having issues with downloading the package.

2 Likes