Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildPecl, lib, fetchFromGitHub, php, zlib, pkg-config }: 2 3buildPecl rec { 4 pname = "memcache"; 5 version = "8.2"; 6 7 src = fetchFromGitHub { 8 owner = "websupport-sk"; 9 repo = "pecl-memcache"; 10 rev = version; 11 hash = "sha256-77GvQ59XUpIZmdYZP6IhtjdkYwXKuNBSG+LBScz2BtI="; 12 }; 13 14 internalDeps = [ 15 php.extensions.session 16 ]; 17 18 configureFlags = [ 19 "--with-zlib-dir=${zlib.dev}" 20 ]; 21 22 nativeBuildInputs = [ pkg-config ]; 23 buildInputs = [ zlib ]; 24 25 meta = with lib; { 26 description = "PHP extension for interfacing with memcached"; 27 license = licenses.php301; 28 homepage = "https://github.com/websupport-sk/pecl-memcache"; 29 maintainers = teams.php.members ++ [ maintainers.krzaczek ]; 30 }; 31}