summary refs log tree commit diff
path: root/pkgs/applications/networking/feedreaders/rsstail/default.nix
blob: df5f79541822cc41107662d90e4608c7c113c876 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ stdenv, fetchFromGitHub, cppcheck, libmrss }:

let version = "1.9"; in
stdenv.mkDerivation rec {
  name = "rsstail-${version}";

  src = fetchFromGitHub {
    sha256 = "0igkkhwzhi2cxbfirmq5xgaidnv0gdhmh2w7052xqpyvzg069faf";
    rev = "aab4fbcc5cdf82e439ea6abe562e9b648fc1a6ef";
    repo = "rsstail";
    owner = "flok99";
  };

  meta = with stdenv.lib; {
    inherit version;
    description = "Monitor RSS feeds for new entries";
    longDescription = ''
      RSSTail is more or less an RSS reader: it monitors an RSS feed and if it
      detects a new entry it'll emit only that new entry.
    '';
    homepage = http://www.vanheusden.com/rsstail/;
    license = with licenses; gpl2Plus;
    platforms = with platforms; linux;
    maintainers = with maintainers; [ nckx ];
  };

  buildInputs = [ libmrss ]
    ++ stdenv.lib.optional doCheck cppcheck;

  postPatch = ''
    substituteInPlace Makefile --replace /usr $out
  '';

  enableParallelBuilding = true;

  doCheck = true;

  preInstall = ''
    mkdir -p $out/{bin,share/man/man1}
  '';
}