sfeed: 1.0 → 1.1

This commit is contained in:
Nikolay Korotkiy 2021-12-07 10:55:08 +03:00
parent ffe8923cd2
commit b93101fb71
No known key found for this signature in database
GPG key ID: D1DE6D7F693663A5

View file

@ -1,19 +1,26 @@
{ stdenv, lib, fetchgit }: { stdenv, lib, fetchgit, ncurses }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "sfeed"; pname = "sfeed";
version = "1.0"; version = "1.1";
src = fetchgit { src = fetchgit {
url = "git://git.codemadness.org/sfeed"; url = "git://git.codemadness.org/sfeed";
rev = version; rev = version;
sha256 = "sha256-pLKWq4KIiT6X37EUIOw5SBb1KWopnFcDO+iE++Uie5s="; sha256 = "sha256-0z9PHni/ni4p4nfeStrZmFFHHtyqT8GYJWVWr5IzFKw=";
}; };
makeFlags = [ "RANLIB:=$(RANLIB)" ]; buildInputs = [ ncurses ];
makeFlags = [ "RANLIB:=$(RANLIB)" "SFEED_CURSES_LDFLAGS:=-lncurses" ]
# use macOS's strlcat() and strlcpy() instead of vendored ones
++ lib.optional stdenv.isDarwin "COMPATOBJ:=";
installFlags = [ "PREFIX=$(out)" ]; installFlags = [ "PREFIX=$(out)" ];
# otherwise does not find SIGWINCH
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE";
meta = with lib; { meta = with lib; {
homepage = "https://codemadness.org/sfeed-simple-feed-parser.html"; homepage = "https://codemadness.org/sfeed-simple-feed-parser.html";
description = "A RSS and Atom parser (and some format programs)"; description = "A RSS and Atom parser (and some format programs)";