mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
Revert "c-ares: 1.14.0 -> 1.15.0"
This reverts commit 5ace270309
.
It's a mass rebuild, moving to staging.
This commit is contained in:
parent
d03ca0c105
commit
87e4e1ba72
|
@ -2,14 +2,23 @@
|
|||
|
||||
let self =
|
||||
stdenv.mkDerivation rec {
|
||||
name = "c-ares-1.15.0";
|
||||
name = "c-ares-1.14.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://c-ares.haxx.se/download/${name}.tar.gz";
|
||||
sha256 = "0lk8knip4xk6qzksdkn7085mmgm4ixfczdyyjw656c193y3rgnvc";
|
||||
sha256 = "0vnwmbvymw677k780kpb6sb8i3szdp89rzy8mz1fwg1657yw3ls5";
|
||||
};
|
||||
|
||||
configureFlags = stdenv.lib.optionals stdenv.hostPlatform.isWindows [ "--disable-shared" "--enable-static" ];
|
||||
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;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A C library for asynchronous DNS requests";
|
||||
|
|
Loading…
Reference in a new issue