2014-05-07 22:33:34 +02:00
|
|
|
{ stdenv, fetchurl, python }:
|
2006-10-08 12:31:55 +02:00
|
|
|
|
2013-07-19 13:07:12 +02:00
|
|
|
let version = "2.0.21"; in
|
2006-10-08 12:31:55 +02:00
|
|
|
stdenv.mkDerivation {
|
2010-07-22 11:02:13 +02:00
|
|
|
name = "libevent-${version}";
|
2006-10-08 12:31:55 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-03-21 12:55:26 +01:00
|
|
|
url = "https://github.com/downloads/libevent/libevent/libevent-${version}-stable.tar.gz";
|
2013-07-19 13:07:12 +02:00
|
|
|
sha256 = "1xblymln9vihdmf1aqkp8chwvnhpdch3786bh30bj75slnl31992";
|
2010-07-22 11:02:13 +02:00
|
|
|
};
|
|
|
|
|
2014-05-07 22:33:34 +02:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace event_rpcgen.py \
|
|
|
|
--replace "/usr/bin/env python2" "${python}/bin/python"
|
|
|
|
'';
|
|
|
|
|
2010-07-22 11:02:13 +02:00
|
|
|
meta = {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Event notification library";
|
2010-07-22 11:02:13 +02:00
|
|
|
|
|
|
|
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";
|
2013-05-04 20:29:16 +02:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2006-10-08 12:31:55 +02:00
|
|
|
};
|
|
|
|
}
|