git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #5621 from prikhi/add-workrave

Add Workrave, an RSI prevention app

commit174184ccc1dc888a03a3a583f34344f8f6258421 authorlethalman <lucabru@src.gnome.org> dateThu 8 Jan 2015, 14:41 (12 years ago) parent197e767323829a
6 files changed+69−6
pkgs/applications/misc/workrave/default.nix+44 pkgs/applications/science/logic/matita/130312.nix+3−2 pkgs/development/libraries/gdome2/default.nix+5−4 pkgs/development/libraries/gdome2/xml-document.patch+11 pkgs/development/ocaml-modules/lablgtkmathview/default.nix+1 pkgs/top-level/all-packages.nix+5
pkgs/applications/misc/workrave/default.nixnew file+44
@@ -0,0 +1,44 @@
1+{ stdenv, fetchurl, autoconf, automake, gettext, intltool, libtool, pkgconfig,
2+ libXtst, cheetah, libXScrnSaver,
3+ glib, glibmm,
4+ gtk, gtkmm,
5+ atk,
6+ pango, pangomm,
7+ cairo, cairomm,
8+ dbus, dbus_glib,
9+ GConf, gconfmm,
10+ gdome2, gstreamer, libsigcxx }:
11+
12+stdenv.mkDerivation rec {
13+ version = "v1_10_6";
14+ name = "workrave-${version}";
15+
16+ src = fetchurl {
17+ url = "http://github.com/rcaelers/workrave/archive/${version}.tar.gz";
18+ sha256 = "0q2p83n33chbqzdcdm7ykfsy73frfi6drxzm4qidxwzpzsxrysgq";
19+ };
20+
21+ buildInputs = [
22+ autoconf automake gettext intltool libtool pkgconfig libXtst cheetah
23+ libXScrnSaver
24+
25+ glib glibmm gtk gtkmm atk pango pangomm cairo cairomm
26+ dbus dbus_glib GConf gconfmm gdome2 gstreamer libsigcxx
27+ ];
28+
29+ preConfigure = "./autogen.sh";
30+
31+ meta = with stdenv.lib; {
32+ description = "A program to help prevent Repetitive Strain Injury";
33+ longDescription = ''
34+ Workrave is a program that assists in the recovery and prevention of
35+ Repetitive Strain Injury (RSI). The program frequently alerts you to
36+ take micro-pauses, rest breaks and restricts you to your daily limit.
37+ '';
38+ homepage = http://www.workrave.org/;
39+ downloadPage = https://github.com/rcaelers/workrave/releases;
40+ license = licenses.gpl3;
41+ maintainers = with maintainers; [ prikhi ];
42+ platforms = platforms.linux;
43+ };
44+}
pkgs/applications/science/logic/matita/130312.nix+3−2
@@ -11,7 +11,7 @@ stdenv.mkDerivation {
1111 name = "${pname}-${version}";
1212
1313 src = fetchurl {
14− url = "http://matita.cs.unibo.it/sources/${pname}_130312.tar.gz";
14+ url = "http://matita.cs.unibo.it/sources/${pname}_130312.tar.gz";
1515 sha256 = "13mjvvldv53dcdid6wmc6g8yn98xca26xq2rgq2jg700lqsni59s";
1616 };
1717
@@ -24,7 +24,7 @@ stdenv.mkDerivation {
2424 '';
2525
2626 prePatch = ''
27− autoreconf -fvi
27+ autoreconf -fvi
2828 '';
2929
3030 buildInputs = [ocaml findlib gdome2 ocaml_expat gmetadom ocaml_http lablgtk ocaml_mysql ocamlnet ulex08 camlzip ocaml_pcre automake autoconf];
@@ -62,5 +62,6 @@ stdenv.mkDerivation {
6262 description = "Matita is an experimental, interactive theorem prover";
6363 license = stdenv.lib.licenses.gpl2Plus;
6464 maintainers = [ stdenv.lib.maintainers.roconnor ];
65+ broken = true;
6566 };
6667}
pkgs/development/libraries/gdome2/default.nix+5−4
@@ -15,12 +15,13 @@ stdenv.mkDerivation {
1515
1616 buildInputs = [pkgconfig glib libxml2 gtkdoc];
1717 propagatedBuildInputs = [glib libxml2];
18+ patches = [ ./xml-document.patch ];
1819
19− meta = {
20+ meta = with stdenv.lib; {
2021 homepage = http://gdome2.cs.unibo.it/;
2122 description = "DOM C library developed for the Gnome project";
22− license = stdenv.lib.licenses.lgpl21Plus;
23− maintainers = [ stdenv.lib.maintainers.roconnor ];
24− broken = true;
23+ license = licenses.lgpl21Plus;
24+ maintainers = with maintainers; [ prikhi roconnor ];
25+ platforms = platforms.linux;
2526 };
2627}
pkgs/development/libraries/gdome2/xml-document.patchnew file+11
@@ -0,0 +1,11 @@
1+--- a/libgdome/gdomecore/gdome-xml-documentt.c 2003-07-13 14:47:54.000000000 +0400
2++++ b/libgdome/gdomecore/gdome-xml-documentt.c 2013-07-02 14:09:18.304613703 +0400
3+@@ -342,7 +342,7 @@
4+ }
5+ xmlNodeDumpOutput (out_buff, NULL, (xmlNode *)is, 0, 0, NULL);
6+ xmlOutputBufferFlush(out_buff);
7+- ret = g_strndup (out_buff->buffer->content, out_buff->buffer->use);
8++ ret = g_strndup (xmlBufContent(out_buff), xmlBufUse(out_buff));
9+ (void)xmlOutputBufferClose(out_buff);
10+
11+ return gdome_xml_str_mkref_own (ret);
pkgs/development/ocaml-modules/lablgtkmathview/default.nix+1
@@ -36,5 +36,6 @@ stdenv.mkDerivation {
3636 description = "OCaml bindings for gtkmathview";
3737 license = stdenv.lib.licenses.lgpl2Plus;
3838 maintainers = [ stdenv.lib.maintainers.roconnor ];
39+ broken = true;
3940 };
4041}
pkgs/top-level/all-packages.nix+5
@@ -11327,6 +11327,11 @@ let
1132711327
1132811328 wordnet = callPackage ../applications/misc/wordnet { };
1132911329
11330+ workrave = callPackage ../applications/misc/workrave {
11331+ inherit (gnome) GConf gconfmm;
11332+ inherit (python27Packages) cheetah;
11333+ };
11334+
1133011335 wrapFirefox =
1133111336 { browser, browserName ? "firefox", desktopName ? "Firefox", nameSuffix ? ""
1133211337 , icon ? "${browser}/lib/${browser.name}/browser/icons/mozicon128.png" }: