1{ lib, stdenv, fetchurl
2, # Note: -static hasn’t work on darwin
3 static ? with stdenv.hostPlatform; isStatic && !isDarwin
4}:
5
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
9# files.
10
11stdenv.mkDerivation rec {
12 pname = "libev";
13 version="4.33";
14
15 src = fetchurl {
16 url = "http://dist.schmorp.de/libev/Attic/${pname}-${version}.tar.gz";
17 sha256 = "1sjs4324is7fp21an4aas2z4dwsvs6z4xwrmp72vwpq1s6wbfzjh";
18 };
19
20 configureFlags = lib.optional (static) "LDFLAGS=-static";
21
22 meta = {
23 description = "A high-performance event loop/event model with lots of features";
24 maintainers = [ lib.maintainers.raskin ];
25 platforms = lib.platforms.all;
26 license = lib.licenses.bsd2; # or GPL2+
27 };
28}