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 f141201
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pkgs/applications/networking/feedreaders/rsstail/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, libmrss, libiconv }:
{ lib, stdenv, fetchFromGitHub, libmrss }:

stdenv.mkDerivation {
pname = "rsstail";
Expand All @@ -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)" ];
Expand Down

0 comments on commit f141201

Please sign in to comment.