diff options
author | Matthew Bauer <matthew.bauer@obsidian.systems> | 2018-08-10 16:05:15 -0400 |
---|---|---|
committer | Matthew Bauer <matthew.bauer@obsidian.systems> | 2018-08-10 16:06:15 -0400 |
commit | 14d689fe5f367fca11db4971a635666303744569 (patch) | |
tree | fa6b902a9f4c324258bec2bde538eb5fd6b65fcc /pkgs/development/libraries/c-ares | |
parent | 490ca6aa8ae89d0639e1e148774c3cd426fc699a (diff) | |
download | nixpkgs-14d689fe5f367fca11db4971a635666303744569.tar nixpkgs-14d689fe5f367fca11db4971a635666303744569.tar.gz nixpkgs-14d689fe5f367fca11db4971a635666303744569.tar.bz2 nixpkgs-14d689fe5f367fca11db4971a635666303744569.tar.lz nixpkgs-14d689fe5f367fca11db4971a635666303744569.tar.xz nixpkgs-14d689fe5f367fca11db4971a635666303744569.tar.zst nixpkgs-14d689fe5f367fca11db4971a635666303744569.zip |
c-ares: fix android build
https://hydra.nixos.org/build/79244764
Diffstat (limited to 'pkgs/development/libraries/c-ares')
-rw-r--r-- | pkgs/development/libraries/c-ares/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/libraries/c-ares/default.nix b/pkgs/development/libraries/c-ares/default.nix index 6f9b94fc872..a22437d3993 100644 --- a/pkgs/development/libraries/c-ares/default.nix +++ b/pkgs/development/libraries/c-ares/default.nix @@ -9,6 +9,15 @@ stdenv.mkDerivation rec { sha256 = "0vnwmbvymw677k780kpb6sb8i3szdp89rzy8mz1fwg1657yw3ls5"; }; + # 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"; homepage = https://c-ares.haxx.se; |