Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildPecl, lib, php, pkg-config, openssl, libevent }: 2buildPecl { 3 pname = "event"; 4 5 version = "3.0.8"; 6 sha256 = "sha256-4+ke3T3BXglpuSVMw2Jq4Hgl45vybWG0mTX2b2A9e2s="; 7 8 configureFlags = [ 9 "--with-event-libevent-dir=${libevent.dev}" 10 "--with-event-core" 11 "--with-event-extra" 12 "--with-event-pthreads" 13 ]; 14 15 postPhpize = '' 16 substituteInPlace configure --replace \ 17 'as_fn_error $? "Couldn'\'''t find $phpincludedir/sockets/php_sockets.h. Please check if sockets extension installed" "$LINENO" 5' \ 18 ':' 19 ''; 20 21 nativeBuildInputs = [ pkg-config ]; 22 buildInputs = [ openssl libevent ]; 23 internalDeps = [ php.extensions.sockets ]; 24 25 meta = with lib; { 26 description = "Efficiently schedule I/O, time and signal based events using the best I/O notification mechanism available"; 27 license = licenses.php301; 28 homepage = "https://bitbucket.org/osmanov/pecl-event/"; 29 maintainers = teams.php.members; 30 }; 31}