Skip to content

Commit

Permalink
rsstail: link with libiconv on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
paparodeo committed Oct 26, 2024
1 parent 1889ebd commit 351c521
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/applications/networking/feedreaders/rsstail/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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)" ];
Expand Down

0 comments on commit 351c521

Please sign in to comment.