2013-11-18 05:02:31 +01:00
|
|
|
{ stdenv, fetchgit, sqlite, curl, pkgconfig, libxml2, stfl, json-c-0-11, ncurses
|
2014-11-27 00:16:50 +01:00
|
|
|
, gettext, libiconv, makeWrapper, perl }:
|
2013-11-12 23:23:44 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-03-13 21:48:34 +01:00
|
|
|
name = "newsbeuter-dev-20140309";
|
2013-11-12 23:23:44 +01:00
|
|
|
|
2013-11-18 05:02:31 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/akrennmair/newsbeuter.git";
|
2014-03-13 21:48:34 +01:00
|
|
|
rev = "1427bdb0705806368db39576a9b803df82fa0415";
|
2016-06-02 13:26:44 +02:00
|
|
|
sha256 = "1g47b8pxkz84r5m3avkjb7p2i88crcrp9gxwhq7xdfywrgg9pgnd";
|
2013-11-12 23:23:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs
|
|
|
|
# use gettext instead of libintlOrEmpty so we have access to the msgfmt
|
|
|
|
# command
|
2014-11-27 00:16:50 +01:00
|
|
|
= [ pkgconfig sqlite curl libxml2 stfl json-c-0-11 ncurses gettext perl libiconv ]
|
2013-11-12 23:23:44 +01:00
|
|
|
++ stdenv.lib.optional stdenv.isDarwin makeWrapper;
|
|
|
|
|
|
|
|
preBuild = ''
|
2014-03-13 21:48:34 +01:00
|
|
|
sed -i -e 110,114d config.sh
|
2013-11-12 23:23:44 +01:00
|
|
|
sed -i "1 s%^.*$%#!${perl}/bin/perl%" txt2h.pl
|
|
|
|
export LDFLAGS=-lncursesw
|
|
|
|
'';
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE =
|
2015-10-05 13:23:01 +02:00
|
|
|
"-I${libxml2.dev}/include/libxml2 -I${json-c-0-11}/include/json-c";
|
2013-11-12 23:23:44 +01:00
|
|
|
|
|
|
|
NIX_LDFLAGS = "-lsqlite3 -lcurl -lxml2 -lstfl -ljson";
|
|
|
|
|
|
|
|
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 = with stdenv.lib; {
|
|
|
|
homepage = http://www.newsbeuter.org;
|
|
|
|
description = "An open-source RSS/Atom feed reader for text terminals";
|
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
license = licenses.mit;
|
2016-09-01 19:39:33 +02:00
|
|
|
platforms = platforms.linux;
|
2013-11-12 23:23:44 +01:00
|
|
|
};
|
|
|
|
}
|