nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 34 lines 1.0 kB view raw
1{ buildPecl, lib, php, pkg-config, openssl, libevent }: 2buildPecl { 3 pname = "event"; 4 5 version = "3.0.6"; 6 sha256 = "sha256-BN43wydPQBCVla29YoPqKSVihSZCkLAIgDZb+CNQecw="; 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 = '' 27 This is an extension to efficiently schedule I/O, time and signal based 28 events using the best I/O notification mechanism available for specific platform. 29 ''; 30 license = licenses.php301; 31 homepage = "https://bitbucket.org/osmanov/pecl-event/"; 32 maintainers = teams.php.members; 33 }; 34}