2006-10-08 11:31:55 +01:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
2011-06-13 15:11:29 +01:00
|
|
|
let version = "2.0.12"; in
|
2006-10-08 11:31:55 +01:00
|
|
|
stdenv.mkDerivation {
|
2010-07-22 10:02:13 +01:00
|
|
|
name = "libevent-${version}";
|
2006-10-08 11:31:55 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-07-22 10:02:13 +01:00
|
|
|
url = "http://monkey.org/~provos/libevent-${version}-stable.tar.gz";
|
2011-06-13 15:11:29 +01:00
|
|
|
sha256 = "1az554fal8g822nhc9f1qrsx12y741x4ks9smj9ix20g5vvq60mc";
|
2010-07-22 10:02:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "libevent, an event notification library";
|
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' The libevent API provides a mechanism to execute a callback function
|
|
|
|
when a specific event occurs on a file descriptor or after a timeout
|
|
|
|
has been reached. Furthermore, libevent also support callbacks due
|
|
|
|
to signals or regular timeouts.
|
|
|
|
|
|
|
|
libevent is meant to replace the event loop found in event driven
|
|
|
|
network servers. An application just needs to call event_dispatch()
|
|
|
|
and then add or remove events dynamically without having to change
|
|
|
|
the event loop.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = "mBSD";
|
2006-10-08 11:31:55 +01:00
|
|
|
};
|
|
|
|
}
|