gtg: refactor (description, platform, version, requirement, formatting)

This commit is contained in:
Moritz Scheuren 2020-08-05 13:12:04 +02:00 committed by Jan Tojnar
parent 0aebcb9b6e
commit 31dde677a6

View File

@ -2,7 +2,6 @@
, fetchFromGitHub , fetchFromGitHub
, meson , meson
, python3Packages , python3Packages
, pkgconfig
, ninja , ninja
, gtk3 , gtk3
, wrapGAppsHook , wrapGAppsHook
@ -16,20 +15,21 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "gtg"; pname = "gtg";
version = "0.4"; version = "unstable-2020-08-02";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "getting-things-gnome"; owner = "getting-things-gnome";
repo = "gtg"; repo = "gtg";
rev = "6623731f301c1b9c7b727e009f4a6462ad381c68"; rev = "6623731f301c1b9c7b727e009f4a6462ad381c68";
sha256 = "14gxgg4nl0ki3dn913041jpyfhxsj90fkd55z6mmpyklhr8mwss1"; sha256 = "14gxgg4nl0ki3dn913041jpyfhxsj90fkd55z6mmpyklhr8mwss1";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
ninja ninja
pkgconfig itstool
gettext
wrapGAppsHook wrapGAppsHook
gobject-introspection gobject-introspection
]; ];
@ -37,8 +37,6 @@ python3Packages.buildPythonApplication rec {
buildInputs = [ buildInputs = [
glib glib
gtk3 gtk3
itstool
gettext
pango pango
gdk-pixbuf gdk-pixbuf
]; ];
@ -50,24 +48,21 @@ python3Packages.buildPythonApplication rec {
dbus-python dbus-python
gst-python gst-python
liblarch liblarch
pyxdg # can probably be removed after next release
]; ];
format = "other"; format = "other";
strictDeps = false; strictDeps = false; # gobject-introspection does not run with strictDeps (https://github.com/NixOS/nixpkgs/issues/56943)
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = " description = " A personal tasks and TODO-list items organizer.";
Getting Things GNOME! (GTG) is a personal tasks and TODO-list items organizer for the GNOME desktop environment and inspired by the ''Getting Things Done'' (GTD) methodology. longDescription = ''
"; "Getting Things GNOME" (GTG) is a personal tasks and ToDo list organizer inspired by the "Getting Things Done" (GTD) methodology.
longDescription = "
GTG is designed with flexibility, adaptability, and ease of use in mind so it can be used as more than just GTD software.
GTG is intended to help you track everything you need to do and need to know, from small tasks to large projects. GTG is intended to help you track everything you need to do and need to know, from small tasks to large projects.
"; '';
homepage = "https://wiki.gnome.org/Apps/GTG"; homepage = "https://wiki.gnome.org/Apps/GTG";
downloadPage = "https://github.com/getting-things-gnome/gtg/releases"; downloadPage = "https://github.com/getting-things-gnome/gtg/releases";
license = licenses.gpl3Only; license = licenses.gpl3Only;
maintainers = with maintainers; [ oyren ]; maintainers = with maintainers; [ oyren ];
platforms = [ "x86_64-linux" ]; platforms = platforms.linux;
}; };
} }