2021-12-07 07:55:08 +00:00
|
|
|
{ stdenv, lib, fetchgit, ncurses }:
|
2021-01-22 08:33:43 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sfeed";
|
2021-12-07 07:55:08 +00:00
|
|
|
version = "1.1";
|
2021-01-22 08:33:43 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.codemadness.org/sfeed";
|
|
|
|
rev = version;
|
2021-12-07 07:55:08 +00:00
|
|
|
sha256 = "sha256-0z9PHni/ni4p4nfeStrZmFFHHtyqT8GYJWVWr5IzFKw=";
|
2021-01-22 08:33:43 +00:00
|
|
|
};
|
|
|
|
|
2021-12-07 07:55:08 +00:00
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
makeFlags = [ "RANLIB:=$(RANLIB)" "SFEED_CURSES_LDFLAGS:=-lncurses" ]
|
|
|
|
# use macOS's strlcat() and strlcpy() instead of vendored ones
|
|
|
|
++ lib.optional stdenv.isDarwin "COMPATOBJ:=";
|
2021-11-13 08:18:31 +00:00
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2021-01-22 08:33:43 +00:00
|
|
|
|
2021-12-07 07:55:08 +00:00
|
|
|
# otherwise does not find SIGWINCH
|
|
|
|
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE";
|
|
|
|
|
2021-01-22 08:33:43 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://codemadness.org/sfeed-simple-feed-parser.html";
|
|
|
|
description = "A RSS and Atom parser (and some format programs)";
|
|
|
|
longDescription = ''
|
|
|
|
It converts RSS or Atom feeds from XML to a TAB-separated file. There are
|
|
|
|
formatting programs included to convert this TAB-separated format to
|
|
|
|
various other formats. There are also some programs and scripts included
|
|
|
|
to import and export OPML and to fetch, filter, merge and order feed
|
|
|
|
items.
|
|
|
|
'';
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
2021-03-18 15:23:57 +00:00
|
|
|
platforms = platforms.all;
|
2021-01-22 08:33:43 +00:00
|
|
|
};
|
|
|
|
}
|