2015-03-24 18:44:00 +00:00
|
|
|
{ stdenv, fetchurl }:
|
2009-08-27 08:17:57 +01:00
|
|
|
|
2015-03-24 18:44:00 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libev-${version}";
|
2015-03-24 23:07:22 +00:00
|
|
|
version="4.19";
|
2015-03-24 18:44:00 +00:00
|
|
|
src = fetchurl {
|
2015-06-26 17:53:10 +01:00
|
|
|
url = "http://dist.schmorp.de/libev/Attic/${name}.tar.gz";
|
2015-03-24 23:07:22 +00:00
|
|
|
sha256 = "1jyw7qbl0spxqa0dccj9x1jsw7cj7szff43cq4acmklnra4mzz48";
|
2015-03-24 18:44:00 +00:00
|
|
|
};
|
2015-05-14 20:12:04 +01:00
|
|
|
|
2015-06-26 17:53:10 +01:00
|
|
|
patches = [ ./noreturn.patch ];
|
|
|
|
|
2015-05-14 20:12:04 +01:00
|
|
|
# Version 4.19 is not valid C11 (which Clang default to)
|
|
|
|
# Check if this is still necessary on upgrade
|
|
|
|
NIX_CFLAGS_COMPILE = if stdenv.cc.isClang then "-std=c99" else null;
|
|
|
|
|
2009-08-27 08:17:57 +01:00
|
|
|
meta = {
|
2015-03-24 22:45:49 +00:00
|
|
|
description = "A high-performance event loop/event model with lots of features";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
2015-03-24 18:44:00 +00:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2015-03-24 22:45:49 +00:00
|
|
|
license = stdenv.lib.licenses.bsd2; # or GPL2+
|
2009-08-27 08:17:57 +01:00
|
|
|
};
|
|
|
|
}
|