From 351c521ddf6c15af07a164cea12ac099c4219e81 Mon Sep 17 00:00:00 2001 From: Reno Dakota <170618376+paparodeo@users.noreply.github.com> Date: Sat, 26 Oct 2024 10:49:18 +0000 Subject: [PATCH] rsstail: link with libiconv on darwin --- .../networking/feedreaders/rsstail/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/feedreaders/rsstail/default.nix b/pkgs/applications/networking/feedreaders/rsstail/default.nix index cecad11a4f6323..40b5d82da4782a 100644 --- a/pkgs/applications/networking/feedreaders/rsstail/default.nix +++ b/pkgs/applications/networking/feedreaders/rsstail/default.nix @@ -13,8 +13,11 @@ stdenv.mkDerivation { buildInputs = [ libmrss ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ]; - postPatch = '' - substituteInPlace Makefile --replace -liconv_hook "" + postPatch = let + liconv = if stdenv.hostPlatform.isDarwin then "-liconv" else ""; + in + '' + substituteInPlace Makefile --replace-fail -liconv_hook "${liconv}" ''; makeFlags = [ "prefix=$(out)" ];