nixpkgs/pkgs/desktops/gnome-3/3.16/misc/pomodoro/default.nix

51 lines
1.7 KiB
Nix
Raw Normal View History

2015-04-10 17:02:57 +02:00
{ stdenv, fetchFromGitHub, which, automake113x, intltool, pkgconfig, libtool, makeWrapper,
2015-06-09 02:36:11 +02:00
dbus_glib, libcanberra, gst_all_1, vala, gnome3, gtk3, gst_plugins_base,
glib, gobjectIntrospection, telepathy_glib
2015-04-10 17:02:57 +02:00
}:
stdenv.mkDerivation rec {
2015-06-09 02:36:11 +02:00
rev = "624945d";
name = "gnome-shell-pomodoro-${gnome3.version}-${rev}";
2015-04-10 17:02:57 +02:00
src = fetchFromGitHub {
owner = "codito";
2015-06-09 02:36:11 +02:00
repo = "gnome-pomodoro";
2015-04-10 17:02:57 +02:00
rev = "${rev}";
2015-06-09 02:36:11 +02:00
sha256 = "0vjy95zvd309n8g13fa80qhqlv7k6wswhrjw7gddxrnmr662xdqq";
2015-04-10 17:02:57 +02:00
};
configureScript = ''./autogen.sh'';
buildInputs = [
which automake113x intltool glib gobjectIntrospection pkgconfig libtool
2015-06-09 02:36:11 +02:00
makeWrapper dbus_glib libcanberra vala gst_all_1.gstreamer
2015-04-10 17:02:57 +02:00
gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
gnome3.gsettings_desktop_schemas gnome3.gnome_desktop
gnome3.gnome_common gnome3.gnome_shell gtk3 telepathy_glib
gnome3.defaultIconTheme
2015-04-10 17:02:57 +02:00
];
preBuild = ''
2015-06-09 02:36:11 +02:00
sed -i 's|\$(INTROSPECTION_GIRDIR)|${gnome3.gnome_desktop}/share/gir-1.0|' \
vapi/Makefile
2015-04-10 17:02:57 +02:00
'';
preFixup = ''
wrapProgram $out/bin/gnome-pomodoro \
--prefix XDG_DATA_DIRS : \
"$out/share:$GSETTINGS_SCHEMAS_PATH:$XDG_DATA_DIRS"
'';
meta = with stdenv.lib; {
homepage = https://github.com/codito/gnome-shell-pomodoro;
2015-06-11 00:58:23 +02:00
description = "A time management utility for GNOME based on the pomodoro technique";
longDescription = ''
This GNOME utility helps to manage time according to Pomodoro Technique.
It intends to improve productivity and focus by taking short breaks.
'';
2015-06-09 02:36:11 +02:00
maintainers = with maintainers; [ DamienCassou jgeerds ];
2015-04-10 17:02:57 +02:00
license = licenses.gpl3;
platforms = platforms.linux;
};
}