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)" ];