From c61f629dd9d3f2ab0629899fbc890a124282cad4 Mon Sep 17 00:00:00 2001 From: Jared Baur Date: Sat, 11 Jan 2025 00:54:34 +0000 Subject: [PATCH] c-ares: 1.27.0 -> 1.34.4 --- pkgs/development/libraries/c-ares/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/c-ares/default.nix b/pkgs/development/libraries/c-ares/default.nix index 913c65e93f97..aeeda1bf5073 100644 --- a/pkgs/development/libraries/c-ares/default.nix +++ b/pkgs/development/libraries/c-ares/default.nix @@ -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";