@@ -2,23 +2,14 @@
22
33let self =
44stdenv.mkDerivation rec {
5− name = "c-ares-1.14.0";
5+ name = "c-ares-1.15.0";
66
77 src = fetchurl {
88 url = "https://c-ares.haxx.se/download/${name}.tar.gz";
9− sha256 = "0vnwmbvymw677k780kpb6sb8i3szdp89rzy8mz1fwg1657yw3ls5";
9+ sha256 = "0lk8knip4xk6qzksdkn7085mmgm4ixfczdyyjw656c193y3rgnvc";
1010 };
1111
12− configureFlags = if stdenv.hostPlatform.isWindows then [ "--disable-shared" "--enable-static" ] else null;
13−
14− # ares_android.h header is missing
15− # see issue https://github.com/c-ares/c-ares/issues/216
16− postPatch = if stdenv.hostPlatform.isAndroid then ''
17− cp ${fetchurl {
18− url = "https://raw.githubusercontent.com/c-ares/c-ares/cares-1_14_0/ares_android.h";
19− sha256 = "1aw8y6r5c8zq6grjwf4mcm2jj35r5kgdklrp296214s1f1827ps8";
20− }} ares_android.h
21− '' else null;
12+ configureFlags = stdenv.lib.optionals stdenv.hostPlatform.isWindows [ "--disable-shared" "--enable-static" ];
2213
2314 meta = with stdenv.lib; {
2415 description = "A C library for asynchronous DNS requests";