nixpkgs/pkgs/applications/networking/feedreaders/newsbeuter/default.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

2013-06-02 07:27:00 +01:00
{ stdenv, fetchurl, sqlite, curl, pkgconfig, libxml2, stfl, json_c, ncurses
2013-07-04 03:06:39 +01:00
, gettext, libiconvOrEmpty, makeWrapper, perl }:
2013-06-02 07:27:00 +01:00
stdenv.mkDerivation rec {
name = "newsbeuter-2.6";
src = fetchurl {
url = "http://www.newsbeuter.org/downloads/${name}.tar.gz";
sha256 = "1hywz5206k0ykjklkjvnfy9fm4jfv9phz8dkzzwhfcjvqv9zv29i";
};
buildInputs
# use gettext instead of libintlOrEmpty so we have access to the msgfmt
# command
2013-07-04 03:06:39 +01:00
= [ pkgconfig sqlite curl libxml2 stfl json_c ncurses gettext perl ]
2013-06-02 07:27:00 +01:00
++ libiconvOrEmpty
++ stdenv.lib.optional stdenv.isDarwin makeWrapper;
preBuild = ''
sed -i -e 104,108d config.sh
2013-07-04 03:06:39 +01:00
sed -i "1 s%^.*$%#!${perl}/bin/perl%" txt2h.pl
2013-06-02 07:27:00 +01:00
export LDFLAGS=-lncursesw
'';
installPhase = ''
DESTDIR=$out prefix=\"\" make install
''
+ stdenv.lib.optionalString stdenv.isDarwin ''
for prog in $out/bin/*; do
wrapProgram "$prog" --prefix DYLD_LIBRARY_PATH : "${stfl}/lib"
done
'';
meta = {
homepage = http://www.newsbeuter.org;
description = "An open-source RSS/Atom feed reader for text terminals";
maintainers = with stdenv.lib.maintainers; [ lovek323 ];
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.unix;
};
}