1 { lib, stdenv, fetchurl, updateAutotoolsGnuConfigScriptsHook
2 , # Note: -static hasn’t work on darwin
3 static ? with stdenv.hostPlatform; isStatic && !isDarwin
6 # Note: this package is used for bootstrapping fetchurl, and thus
7 # cannot use fetchpatch! All mutable patches (generated by GitHub or
8 # cgit) that are needed here should be included directly in Nixpkgs as
11 stdenv.mkDerivation rec {
16 url = "http://dist.schmorp.de/libev/Attic/${pname}-${version}.tar.gz";
17 sha256 = "1sjs4324is7fp21an4aas2z4dwsvs6z4xwrmp72vwpq1s6wbfzjh";
20 nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook ];
22 configureFlags = lib.optional (static) "LDFLAGS=-static";
25 description = "High-performance event loop/event model with lots of features";
26 maintainers = [ lib.maintainers.raskin ];
27 platforms = lib.platforms.all;
28 license = lib.licenses.bsd2; # or GPL2+