Subject: [PATCH] gnu: Add gnome-shell-extension-customize-ibus.
From: "Songlin Jiang" <[email-masked]>
To: "guix-patches" <[email-masked]>
Date: Sun, 21 Nov 2021 14:38:51 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/gnome-xyz.scm (gnome-shell-extension-customize-ibus): New variable
---
 gnu/packages/gnome-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm
index 6d8d02fb9c..51a746e143 100644
--- a/gnu/packages/gnome-xyz.scm
+++ b/gnu/packages/gnome-xyz.scm
@@ -11,6 +11,7 @@
 ;;; Copyright © 2020 Ellis Kenyo <[email-masked]>
 ;;; Copyright © 2020 Stefan Reichör <[email-masked]>
 ;;; Copyright © 2021 Vinicius Monego <[email-masked]>
+;;; Copyright © 2021 Songlin Jiang <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -990,3 +991,38 @@ palette.")
 outputs notifications to STDOUT in order to allow the user to process
 notifications any way they prefer.")
       (license license:expat))))
+
+(define-public gnome-shell-extension-customize-ibus
+  (package
+    (name "gnome-shell-extension-customize-ibus")
+    (version "78")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/openSUSE/Customize-IBus.git")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1hnnsjriq7xaakk8biwz55mn077lnm9nsmi4wz5zk7clgxmasvq9"))))
+    (build-system copy-build-system)
+    (arguments
+     '(#:install-plan
+       '(("_build" "share/gnome-shell/extensions/[email-masked]"))
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'install 'compile-everything
+           (lambda _
+             (with-directory-excursion "."
+               (invoke "make"
+                       "_build"
+                       "VERSION=78"))
+             #t)))))
+    (native-inputs
+     `(("gettext" ,gettext-minimal)
+       ("glib:bin" ,glib "bin")))
+    (home-page "https://github.com/openSUSE/Customize-IBus")
+    (synopsis "GNOME Shell Extension for IBus Customization")
+    (description "Customize IBus provides full customization of appearance,
+behavior, system tray and input source indicator for IBus")
+    (license license:gpl3+)))
--
2.31.1