summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPavan Rikhi <pavan.rikhi+agit@gmail.com>2015-01-04 10:12:22 -0500
committerPavan Rikhi <pavan.rikhi+agit@gmail.com>2015-01-07 02:15:26 -0500
commit323829af0a04ef1eb1120701f0568304c8f58d29 (patch)
treedd4e02adcf58e9498b7c1b425f9409563e1ebd59 /pkgs
parenta6e9175b6db1eedc614040a9bcad5638539cf4f1 (diff)
downloadnixlib-323829af0a04ef1eb1120701f0568304c8f58d29.tar
nixlib-323829af0a04ef1eb1120701f0568304c8f58d29.tar.gz
nixlib-323829af0a04ef1eb1120701f0568304c8f58d29.tar.bz2
nixlib-323829af0a04ef1eb1120701f0568304c8f58d29.tar.lz
nixlib-323829af0a04ef1eb1120701f0568304c8f58d29.tar.xz
nixlib-323829af0a04ef1eb1120701f0568304c8f58d29.tar.zst
nixlib-323829af0a04ef1eb1120701f0568304c8f58d29.zip
workrave: add expression
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/misc/workrave/default.nix44
-rw-r--r--pkgs/top-level/all-packages.nix5
2 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/applications/misc/workrave/default.nix b/pkgs/applications/misc/workrave/default.nix
new file mode 100644
index 000000000000..f0f0b00c9277
--- /dev/null
+++ b/pkgs/applications/misc/workrave/default.nix
@@ -0,0 +1,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;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 383b5c3f171e..ef13acecd120 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -11316,6 +11316,11 @@ let
 
   wordnet = callPackage ../applications/misc/wordnet { };
 
+  workrave = callPackage ../applications/misc/workrave {
+    inherit (gnome) GConf gconfmm;
+    inherit (python27Packages) cheetah;
+  };
+
   wrapFirefox =
     { browser, browserName ? "firefox", desktopName ? "Firefox", nameSuffix ? ""
     , icon ? "${browser}/lib/${browser.name}/browser/icons/mozicon128.png" }: