lol
at 24.11-pre 38 lines 1.3 kB view raw
1{ stdenv, lib, fetchgit, ncurses }: 2 3stdenv.mkDerivation rec { 4 pname = "sfeed"; 5 version = "2.0"; 6 7 src = fetchgit { 8 url = "git://git.codemadness.org/sfeed"; 9 rev = version; 10 sha256 = "sha256-DbzJWi9wAc7w2Z0bQt5PEFOuu9L3xzNrJvCocvCer34="; 11 }; 12 13 buildInputs = [ ncurses ]; 14 15 makeFlags = [ "RANLIB:=$(RANLIB)" "SFEED_CURSES_LDFLAGS:=-lncurses" ] 16 # use macOS's strlcat() and strlcpy() instead of vendored ones 17 ++ lib.optional stdenv.isDarwin "COMPATOBJ:="; 18 19 installFlags = [ "PREFIX=$(out)" ]; 20 21 # otherwise does not find SIGWINCH 22 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE"; 23 24 meta = with lib; { 25 homepage = "https://codemadness.org/sfeed-simple-feed-parser.html"; 26 description = "A RSS and Atom parser (and some format programs)"; 27 longDescription = '' 28 It converts RSS or Atom feeds from XML to a TAB-separated file. There are 29 formatting programs included to convert this TAB-separated format to 30 various other formats. There are also some programs and scripts included 31 to import and export OPML and to fetch, filter, merge and order feed 32 items. 33 ''; 34 license = licenses.isc; 35 maintainers = [ maintainers.matthiasbeyer ]; 36 platforms = platforms.all; 37 }; 38}