Subject: [PATCH] gnu: Add dialect.

From: Dominik Delgado Steuter <[email-masked]>
Date: Thu, 27 Apr 2023 00:22:41 +0200

* gnu/packages/gnome.scm (dialect): New variable.
---
 gnu/packages/gnome.scm | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index e31931d..ff1bee2 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -74,6 +74,7 @@
 ;;; Copyright © 2022 Alexandros Theodotou <[email-masked]>
 ;;; Copyright © 2022 Arjan Adriaanse <[email-masked]>
 ;;; Copyright © 2023 Kaelyn Takata <[email-masked]>
+;;; Copyright © 2023 Dominik Delgado Steuter <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -10384,6 +10385,45 @@ (define-public endeavour
 (define-public gnome-todo
   (deprecated-package "gnome-todo" endeavour))
 
+(define-public dialect
+  (package
+    (name "dialect")
+    (version "2.1.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/dialect-app/dialect")
+                    (commit version)
+                    (recursive? #t))) ;po module
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0wac9r33zslyhvadyj7iaapskk7f9pfvia7zlqfksfhkaji6gmna"))))
+    (build-system meson-build-system)
+    (arguments
+     `(#:glib-or-gtk? #t))
+    (native-inputs (list blueprint-compiler
+                         desktop-file-utils
+                         `(,glib "bin")
+                         gnu-gettext
+                         gobject-introspection
+                         `(,gtk "bin")
+                         pkg-config))
+    (propagated-inputs (list gstreamer
+                             libadwaita
+                             libsoup
+                             python
+                             python-gtts
+                             python-pygobject
+                             python-requests))
+    (home-page "https://apps.gnome.org/de/app/app.drey.Dialect")
+    (synopsis "Translation app for GNOME")
+    (description
+     "Dialect is a simple translation app which uses Google Translate
+(default), LibreTranslate or Lingva Translate.  It includes features
+like automatic language detection, text-to-speech and clipboard buttons.")
+    (license license:gpl3+)))
+
 (define-public gnome-dictionary
   (package
     (name "gnome-dictionary")

base-commit: e86851ccb3df1e87efca7138ee8d055a30832a4e
-- 
2.39.2