From 31dde677a623e5972ce1ea817074579688b8cda3 Mon Sep 17 00:00:00 2001 From: Moritz Scheuren Date: Wed, 5 Aug 2020 13:12:04 +0200 Subject: [PATCH] gtg: refactor (description, platform, version, requirement, formatting) --- pkgs/applications/office/gtg/default.nix | 31 ++++++++++-------------- 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/pkgs/applications/office/gtg/default.nix b/pkgs/applications/office/gtg/default.nix index 5491f526c98..30d1e3dbac5 100644 --- a/pkgs/applications/office/gtg/default.nix +++ b/pkgs/applications/office/gtg/default.nix @@ -2,7 +2,6 @@ , fetchFromGitHub , meson , python3Packages -, pkgconfig , ninja , gtk3 , wrapGAppsHook @@ -16,20 +15,21 @@ python3Packages.buildPythonApplication rec { pname = "gtg"; - version = "0.4"; + version = "unstable-2020-08-02"; src = fetchFromGitHub { - owner = "getting-things-gnome"; - repo = "gtg"; - rev = "6623731f301c1b9c7b727e009f4a6462ad381c68"; - sha256 = "14gxgg4nl0ki3dn913041jpyfhxsj90fkd55z6mmpyklhr8mwss1"; + owner = "getting-things-gnome"; + repo = "gtg"; + rev = "6623731f301c1b9c7b727e009f4a6462ad381c68"; + sha256 = "14gxgg4nl0ki3dn913041jpyfhxsj90fkd55z6mmpyklhr8mwss1"; }; nativeBuildInputs = [ meson ninja - pkgconfig + itstool + gettext wrapGAppsHook gobject-introspection ]; @@ -37,8 +37,6 @@ python3Packages.buildPythonApplication rec { buildInputs = [ glib gtk3 - itstool - gettext pango gdk-pixbuf ]; @@ -50,24 +48,21 @@ python3Packages.buildPythonApplication rec { dbus-python gst-python liblarch - pyxdg # can probably be removed after next release ]; format = "other"; - strictDeps = false; + strictDeps = false; # gobject-introspection does not run with strictDeps (https://github.com/NixOS/nixpkgs/issues/56943) meta = with stdenv.lib; { - description = " - 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 = " - GTG is designed with flexibility, adaptability, and ease of use in mind so it can be used as more than just GTD software. + description = " A personal tasks and TODO-list items organizer."; + longDescription = '' + "Getting Things GNOME" (GTG) is a personal tasks and ToDo list organizer inspired by the "Getting Things Done" (GTD) methodology. 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"; downloadPage = "https://github.com/getting-things-gnome/gtg/releases"; license = licenses.gpl3Only; maintainers = with maintainers; [ oyren ]; - platforms = [ "x86_64-linux" ]; + platforms = platforms.linux; }; }