nixpkgs/pkgs/by-name/sf/sfeed/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

39 lines
1.3 KiB
Nix

{ stdenv, lib, fetchgit, ncurses }:
stdenv.mkDerivation rec {
pname = "sfeed";
version = "2.0";
src = fetchgit {
url = "git://git.codemadness.org/sfeed";
rev = version;
sha256 = "sha256-DbzJWi9wAc7w2Z0bQt5PEFOuu9L3xzNrJvCocvCer34=";
};
buildInputs = [ ncurses ];
makeFlags = [ "RANLIB:=$(RANLIB)" "SFEED_CURSES_LDFLAGS:=-lncurses" ]
# use macOS's strlcat() and strlcpy() instead of vendored ones
++ lib.optional stdenv.hostPlatform.isDarwin "COMPATOBJ:=";
installFlags = [ "PREFIX=$(out)" ];
# otherwise does not find SIGWINCH
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-D_DARWIN_C_SOURCE";
meta = with lib; {
homepage = "https://codemadness.org/sfeed-simple-feed-parser.html";
description = "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 ];
platforms = platforms.all;
};
}