From f141201e22c4f5e4744709e582b91807690c9dfc 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 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/networking/feedreaders/rsstail/default.nix b/pkgs/applications/networking/feedreaders/rsstail/default.nix index cecad11a4f632..353d2beec02fc 100644 --- a/pkgs/applications/networking/feedreaders/rsstail/default.nix +++ b/pkgs/applications/networking/feedreaders/rsstail/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, libmrss, libiconv }: +{ lib, stdenv, fetchFromGitHub, libmrss }: stdenv.mkDerivation { pname = "rsstail"; @@ -11,10 +11,13 @@ stdenv.mkDerivation { sha256 = "12p69i3g1fwlw0bds9jqsdmzkid3k5a41w31d227i7vm12wcvjf6"; }; - buildInputs = [ libmrss ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ]; + buildInputs = [ libmrss ]; - 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)" ];