about summary refs log tree commit diff
path: root/pkgs/applications/misc/workrave/default.nix
blob: f0f0b00c92775e426c336f3ce374c116bd0ec250 (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
42
43
44
{ stdenv, fetchurl, autoconf, automake, gettext, intltool, libtool, pkgconfig,
  libXtst, cheetah, libXScrnSaver,
  glib, glibmm,
  gtk, gtkmm,
  atk,
  pango, pangomm,
  cairo, cairomm,
  dbus, dbus_glib,
  GConf, gconfmm,
  gdome2, gstreamer, libsigcxx }:

stdenv.mkDerivation rec {
  version = "v1_10_6";
  name = "workrave-${version}";

  src = fetchurl {
    url = "http://github.com/rcaelers/workrave/archive/${version}.tar.gz";
    sha256 = "0q2p83n33chbqzdcdm7ykfsy73frfi6drxzm4qidxwzpzsxrysgq";
  };

  buildInputs = [
    autoconf automake gettext intltool libtool pkgconfig libXtst cheetah
    libXScrnSaver

    glib glibmm gtk gtkmm atk pango pangomm cairo cairomm
    dbus dbus_glib GConf gconfmm gdome2 gstreamer libsigcxx
  ];

  preConfigure = "./autogen.sh";

  meta = with stdenv.lib; {
    description = "A program to help prevent Repetitive Strain Injury";
    longDescription = ''
      Workrave is a program that assists in the recovery and prevention of
      Repetitive Strain Injury (RSI). The program frequently alerts you to
      take micro-pauses, rest breaks and restricts you to your daily limit.
    '';
    homepage = http://www.workrave.org/;
    downloadPage = https://github.com/rcaelers/workrave/releases;
    license = licenses.gpl3;
    maintainers = with maintainers; [ prikhi ];
    platforms = platforms.linux;
  };
}