lol

libev: 4.19 -> 4.20

Tested using stdenv and clangStdenv

+3 -21
+3 -8
pkgs/development/libraries/libev/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "libev-${version}"; 5 - version="4.19"; 5 + version="4.20"; 6 + 6 7 src = fetchurl { 7 8 url = "http://dist.schmorp.de/libev/Attic/${name}.tar.gz"; 8 - sha256 = "1jyw7qbl0spxqa0dccj9x1jsw7cj7szff43cq4acmklnra4mzz48"; 9 + sha256 = "17j47pbkr65a18mfvy2861p5k7w4pxmdgiw723ryfqd9gx636w7q"; 9 10 }; 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 11 17 12 meta = { 18 13 description = "A high-performance event loop/event model with lots of features";
-13
pkgs/development/libraries/libev/noreturn.patch
··· 1 - diff --git a/ev.c b/ev.c 2 - index 6f36c6d..b8a1c5f 100644 3 - --- a/ev.c 4 - +++ b/ev.c 5 - @@ -1026,7 +1026,7 @@ ecb_inline uint64_t ecb_rotr64 (uint64_t x, unsigned int count) { return (x << ( 6 - #define ecb_unreachable() __builtin_unreachable () 7 - #else 8 - /* this seems to work fine, but gcc always emits a warning for it :/ */ 9 - - ecb_inline void ecb_unreachable (void) ecb_noreturn; 10 - + ecb_inline ecb_noreturn void ecb_unreachable (void); 11 - ecb_inline void ecb_unreachable (void) { } 12 - #endif 13 -