{ stdenv, fetchurl, pkgconfig, gtk3, libxml2, gettext, libical, libnotify
, libarchive, gtkspell3, webkitgtk, libgringotts, wrapGAppsHook }:

stdenv.mkDerivation rec {
  name = "osmo-${version}";
  version = "0.4.2";

  src = fetchurl {
    url = "mirror://sourceforge/osmo-pim/${name}.tar.gz";
    sha256 = "1gjd4w9jckfpqr9n0bw0w25h3qhfyzw1xvilh3hqdadfinwyal2v";
  };

  nativeBuildInputs = [ pkgconfig gettext wrapGAppsHook ];
  buildInputs = [ gtk3 libxml2 libical libnotify libarchive
    gtkspell3 webkitgtk libgringotts ];

  meta = with stdenv.lib; {
    description = "A handy personal organizer";
    homepage = http://clayo.org/osmo/;
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = with maintainers; [ pSub ];
  };
}
