at v192 716 B view raw
1{ stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 name = "libev-${version}"; 5 version="4.19"; 6 src = fetchurl { 7 url = "http://dist.schmorp.de/libev/Attic/${name}.tar.gz"; 8 sha256 = "1jyw7qbl0spxqa0dccj9x1jsw7cj7szff43cq4acmklnra4mzz48"; 9 }; 10 11 patches = [ ./noreturn.patch ]; 12 13 # Version 4.19 is not valid C11 (which Clang default to) 14 # Check if this is still necessary on upgrade 15 NIX_CFLAGS_COMPILE = if stdenv.cc.isClang then "-std=c99" else null; 16 17 meta = { 18 description = "A high-performance event loop/event model with lots of features"; 19 maintainers = [ stdenv.lib.maintainers.raskin ]; 20 platforms = stdenv.lib.platforms.all; 21 license = stdenv.lib.licenses.bsd2; # or GPL2+ 22 }; 23}