diff --git a/pkgs/development/libraries/c-ares/default.nix b/pkgs/development/libraries/c-ares/default.nix index 099d02c82639..efe7a5820b53 100644 --- a/pkgs/development/libraries/c-ares/default.nix +++ b/pkgs/development/libraries/c-ares/default.nix @@ -2,23 +2,14 @@ let self = stdenv.mkDerivation rec { - name = "c-ares-1.14.0"; + name = "c-ares-1.15.0"; src = fetchurl { url = "https://c-ares.haxx.se/download/${name}.tar.gz"; - sha256 = "0vnwmbvymw677k780kpb6sb8i3szdp89rzy8mz1fwg1657yw3ls5"; + sha256 = "0lk8knip4xk6qzksdkn7085mmgm4ixfczdyyjw656c193y3rgnvc"; }; - configureFlags = if stdenv.hostPlatform.isWindows then [ "--disable-shared" "--enable-static" ] else null; - - # ares_android.h header is missing - # see issue https://github.com/c-ares/c-ares/issues/216 - postPatch = if stdenv.hostPlatform.isAndroid then '' - cp ${fetchurl { - url = "https://raw.githubusercontent.com/c-ares/c-ares/cares-1_14_0/ares_android.h"; - sha256 = "1aw8y6r5c8zq6grjwf4mcm2jj35r5kgdklrp296214s1f1827ps8"; - }} ares_android.h - '' else null; + configureFlags = stdenv.lib.optionals stdenv.hostPlatform.isWindows [ "--disable-shared" "--enable-static" ]; meta = with stdenv.lib; { description = "A C library for asynchronous DNS requests";