2016-05-01 00:29:48 +02:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch
|
2016-04-30 20:45:47 +02:00
|
|
|
, autoconf, automake, gettext, intltool, libtool, pkgconfig
|
|
|
|
, libICE, libSM, libXScrnSaver, libXtst, cheetah
|
2016-09-11 23:24:51 +02:00
|
|
|
, glib, glibmm, gtkmm2, atk, pango, pangomm, cairo, cairomm
|
2016-04-30 20:45:47 +02:00
|
|
|
, dbus, dbus_glib, GConf, gconfmm, gdome2, gstreamer, libsigcxx }:
|
2015-01-04 16:12:22 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "workrave-${version}";
|
2016-05-01 00:29:48 +02:00
|
|
|
version = "1.10.7";
|
2015-01-04 16:12:22 +01:00
|
|
|
|
2016-04-24 15:09:17 +02:00
|
|
|
src = let
|
2016-05-01 00:29:48 +02:00
|
|
|
in fetchFromGitHub {
|
|
|
|
sha256 = "1mxg882rfih7xzadrpj51m9r33f6s3rzwv61nfwi94vzd68qjnxb";
|
|
|
|
rev = with stdenv.lib;
|
|
|
|
"v" + concatStringsSep "_" (splitString "." version);
|
|
|
|
repo = "workrave";
|
|
|
|
owner = "rcaelers";
|
2015-01-04 16:12:22 +01:00
|
|
|
};
|
|
|
|
|
2016-05-01 00:29:48 +02:00
|
|
|
patches = [
|
|
|
|
# Building with gtk{,mm}3 works just fine, but let's be conservative for once:
|
|
|
|
(fetchpatch {
|
|
|
|
name = "workrave-fix-compilation-with-gtk2.patch";
|
|
|
|
url = "https://github.com/rcaelers/workrave/commit/"
|
|
|
|
+ "271efdcd795b3592bfede8b1af2162af4b1f0f26.patch";
|
|
|
|
sha256 = "1a3d4jj8516m3m24bl6y8alanl1qnyzv5dv1hz5v3hjgk89fj6rk";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-04-30 20:45:47 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf automake gettext intltool libtool pkgconfig
|
|
|
|
];
|
2015-01-04 16:12:22 +01:00
|
|
|
buildInputs = [
|
2016-04-30 20:45:47 +02:00
|
|
|
libICE libSM libXScrnSaver libXtst cheetah
|
2016-09-11 23:24:51 +02:00
|
|
|
glib glibmm gtkmm2 atk pango pangomm cairo cairomm
|
2016-04-30 20:45:47 +02:00
|
|
|
dbus dbus_glib GConf gconfmm gdome2 gstreamer libsigcxx
|
2015-01-04 16:12:22 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = "./autogen.sh";
|
|
|
|
|
2016-05-01 00:29:48 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-01-04 16:12:22 +01:00
|
|
|
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;
|
2016-05-01 00:29:48 +02:00
|
|
|
maintainers = with maintainers; [ nckx prikhi ];
|
2015-01-04 16:12:22 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|