c-ares: 1.27.0 -> 1.34.4 (#373097)

This commit is contained in:
K900
2025-02-09 09:16:14 +03:00
committed by GitHub
@@ -18,14 +18,12 @@
stdenv.mkDerivation rec {
pname = "c-ares";
version = "1.27.0";
version = "1.34.4";
src = fetchurl {
# Note: tag name varies in some versions, e.g. v1.30.0, c-ares-1_17_0.
url = "https://github.com/c-ares/${pname}/releases/download/cares-${
builtins.replaceStrings [ "." ] [ "_" ] version
}/${pname}-${version}.tar.gz";
hash = "sha256-CnK+ZpWZVcQ+KvL70DQY6Cor1UZGBOyaYhR+N6zrQgs=";
url = "https://github.com/c-ares/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
hash = "sha256-+jjb7WWe5MxaMt9eJ97aV1+mhSx5pyuhr4XeNaauIi8=";
};
outputs = [
@@ -50,6 +48,10 @@ stdenv.mkDerivation rec {
curl = (curl.override { c-aresSupport = true; }).tests.withCheck;
};
preFixup = lib.optionalString withCMake ''
substituteInPlace $out/lib/pkgconfig/libcares.pc --replace-fail \''${prefix}/ ""
'';
meta = with lib; {
description = "C library for asynchronous DNS requests";
homepage = "https://c-ares.haxx.se";