diff --git a/pkgs/applications/networking/feedreaders/rsstail/default.nix b/pkgs/applications/networking/feedreaders/rsstail/default.nix index cecad11a4f6323..49cad39911d065 100644 --- a/pkgs/applications/networking/feedreaders/rsstail/default.nix +++ b/pkgs/applications/networking/feedreaders/rsstail/default.nix @@ -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; @@ -35,4 +35,4 @@ stdenv.mkDerivation { maintainers = [ maintainers.Necior ]; platforms = platforms.unix; }; -} +})