{ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, flake-utils, } @ inputs: flake-utils.lib.eachDefaultSystem ( system: let pkgs = import nixpkgs { inherit system; config.allowUnfree = true; config.allowInsecurePredicate = pkg: pkgs.lib.getName pkg == "openssl"; }; php = pkgs.php83.buildEnv { extensions = ( { all, enabled, }: enabled ++ [ all.xdebug (all.redis.overrideAttrs (finalAttrs: previousAttrs: { src = pkgs.fetchFromGitHub { repo = "phpredis"; owner = "phpredis"; rev = "ff305349dba87ab857a8f28acbc3b22af5a271cc"; sha256 = "sha256-vTuUoYATt2NEtkpztaHMEFVWvv9oEnJ5/ZI+FAbjqWo="; }; })) # relay section https://relay.so/docs/1.x/installation#manual-installation all.igbinary all.msgpack all.relay ] ); }; in { formatter = pkgs.alejandra; packages.default = pkgs.buildEnv { name = "snc-redis"; paths = [ php php.packages.composer pkgs.redis pkgs.overmind ]; }; } ); }