nixpkgs/pkgs/desktops/gnome-3/3.18/misc/pomodoro/default.nix
2016-01-22 14:29:28 +01:00

51 lines
1.7 KiB
Nix

{ stdenv, fetchFromGitHub, which, automake113x, intltool, pkgconfig, libtool, makeWrapper,
dbus_glib, libcanberra, gst_all_1, vala, gnome3, gtk3, gst_plugins_base,
glib, gobjectIntrospection, telepathy_glib
}:
stdenv.mkDerivation rec {
rev = "4844fada548ba4d30e1441e063565f9e46334ffd";
name = "gnome-shell-pomodoro-${gnome3.version}-${rev}";
src = fetchFromGitHub {
owner = "codito";
repo = "gnome-pomodoro";
rev = "${rev}";
sha256 = "11vqlz0gcvrvf87hwwxvpw3lv50ail16nlynlzkqfd2dac028mag";
};
configureScript = ''./autogen.sh'';
buildInputs = [
which automake113x intltool glib gobjectIntrospection pkgconfig libtool
makeWrapper dbus_glib libcanberra vala gst_all_1.gstreamer
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
];
preBuild = ''
sed -i 's|\$(INTROSPECTION_GIRDIR)|${gnome3.gnome_desktop}/share/gir-1.0|' \
vapi/Makefile
'';
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;
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.
'';
maintainers = with maintainers; [ DamienCassou jgeerds ];
license = licenses.gpl3;
platforms = platforms.linux;
};
}