Skip to content

Commit

Permalink
rsstail: 2.1 -> 2.2
Browse files Browse the repository at this point in the history
fix linking to libiconv on darwin

folkertvanheusden/rsstail@6f24361...v2.2
  • Loading branch information
paparodeo committed Oct 26, 2024
1 parent 1889ebd commit 3cf1460
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions pkgs/applications/networking/feedreaders/rsstail/default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{ lib, stdenv, fetchFromGitHub, libmrss, libiconv }:
{ lib, stdenv, fetchFromGitHub, libmrss }:

stdenv.mkDerivation {
stdenv.mkDerivation (final: {
pname = "rsstail";
version = "2.1";
version = "2.2";

src = fetchFromGitHub {
owner = "folkertvanheusden";
repo = "rsstail";
rev = "6f2436185372b3f945a4989406c4b6a934fe8a95";
sha256 = "12p69i3g1fwlw0bds9jqsdmzkid3k5a41w31d227i7vm12wcvjf6";
rev = "v${final.version}";
hash = "sha256-wbdf9zhwMN7QhJ5WoJo1Csu0EcKUTON8Q2Ic5scbn7I=";
};

buildInputs = [ libmrss ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];

postPatch = ''
substituteInPlace Makefile --replace -liconv_hook ""
'';
buildInputs = [ libmrss ];

makeFlags = [ "prefix=$(out)" ];
enableParallelBuilding = true;

env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_LDFLAGS = "-liconv";
};

# just runs cppcheck linter
doCheck = false;

Expand All @@ -35,4 +35,4 @@ stdenv.mkDerivation {
maintainers = [ maintainers.Necior ];
platforms = platforms.unix;
};
}
})

0 comments on commit 3cf1460

Please sign in to comment.