From 417212e07aafb2112d1ca408d435164153f47406 Mon Sep 17 00:00:00 2001 From: Reno Dakota <170618376+paparodeo@users.noreply.github.com> Date: Sat, 26 Oct 2024 10:10:20 +0000 Subject: [PATCH] libticonv: linnk with libiconv the darwin sdk rework removed the libiconv hook which adds -liconv so add explicitly to work around broken autoconf libiconv detection --- pkgs/development/libraries/libticonv/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libticonv/default.nix b/pkgs/development/libraries/libticonv/default.nix index 0c075406dee2c..c44bd314fd073 100644 --- a/pkgs/development/libraries/libticonv/default.nix +++ b/pkgs/development/libraries/libticonv/default.nix @@ -4,6 +4,7 @@ , pkg-config , autoreconfHook , glib +, libiconv }: stdenv.mkDerivation rec { @@ -21,11 +22,11 @@ stdenv.mkDerivation rec { buildInputs = [ glib - ]; + ] ++ lib.optional stdenv.hostPlatform.isDarwin libiconv; configureFlags = [ "--enable-iconv" - ]; + ] ++ lib.optional stdenv.hostPlatform.isDarwin "LDFLAGS=-liconv"; meta = with lib; { changelog = "http://lpg.ticalc.org/prj_tilp/news.html";