libevent: 2.0.21 -> 2.0.22

This commit is contained in:
William A. Kennington III 2015-04-20 14:44:14 -07:00
parent dea5f168f7
commit b090b10d68

View File

@ -1,20 +1,24 @@
{ stdenv, fetchurl, python }: { stdenv, fetchFromGitHub, autoreconfHook, python }:
let version = "2.0.21"; in let version = "2.0.22"; in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "libevent-${version}"; name = "libevent-${version}";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/downloads/libevent/libevent/libevent-${version}-stable.tar.gz"; owner = "libevent";
sha256 = "1xblymln9vihdmf1aqkp8chwvnhpdch3786bh30bj75slnl31992"; repo = "libevent";
rev = "release-${version}-stable";
sha256 = "1x2437af9j870i7l37dav1i2g9z93lbz406kyimx4nq5qcx5463p";
}; };
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ python ];
patchPhase = '' patchPhase = ''
substituteInPlace event_rpcgen.py \ patchShebangs event_rpcgen.py
--replace "/usr/bin/env python2" "${python}/bin/python"
''; '';
meta = { meta = with stdenv.lib; {
description = "Event notification library"; description = "Event notification library";
longDescription = longDescription =
@ -29,7 +33,8 @@ stdenv.mkDerivation {
the event loop. the event loop.
''; '';
license = "mBSD"; license = licenses.bsd3;
platforms = stdenv.lib.platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ wkennington ];
}; };
} }