@@ -0,0 +1,41 @@
1+{ stdenv, fetchFromGitHub, cppcheck, libmrss }:
2+
3+let version = "1.9"; in
4+stdenv.mkDerivation rec {
5+ name = "rsstail-${version}";
6+
7+ src = fetchFromGitHub {
8+ sha256 = "0igkkhwzhi2cxbfirmq5xgaidnv0gdhmh2w7052xqpyvzg069faf";
9+ rev = "aab4fbcc5cdf82e439ea6abe562e9b648fc1a6ef";
10+ repo = "rsstail";
11+ owner = "flok99";
12+ };
13+
14+ meta = with stdenv.lib; {
15+ inherit version;
16+ description = "Monitor RSS feeds for new entries";
17+ longDescription = ''
18+ RSSTail is more or less an RSS reader: it monitors an RSS feed and if it
19+ detects a new entry it'll emit only that new entry.
20+ '';
21+ homepage = http://www.vanheusden.com/rsstail/;
22+ license = with licenses; gpl2Plus;
23+ platforms = with platforms; linux;
24+ maintainers = with maintainers; [ nckx ];
25+ };
26+
27+ buildInputs = [ libmrss ]
28+ ++ stdenv.lib.optional doCheck cppcheck;
29+
30+ postPatch = ''
31+ substituteInPlace Makefile --replace /usr $out
32+ '';
33+
34+ enableParallelBuilding = true;
35+
36+ doCheck = true;
37+
38+ preInstall = ''
39+ mkdir -p $out/{bin,share/man/man1}
40+ '';
41+}