Subject: [bug#72155] [PATCH] gnu: Add qute-gemini.

From: gemmaro <[email-masked]>
Date: Wed, 17 Jul 2024 21:06:16 +0900

* gnu/packages/web-browsers.scm (qute-gemini): New variable.

Change-Id: I7832ab9fe29cd263b2c8728ee760f1fe6eef27e4
---
 gnu/packages/web-browsers.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/web-browsers.scm b/gnu/packages/web-browsers.scm
index 4a2b28916d..5392c82236 100644
--- a/gnu/packages/web-browsers.scm
+++ b/gnu/packages/web-browsers.scm
@@ -22,6 +22,7 @@
 ;;; Copyright © 2020 Hartmut Goebel <[email-masked]>
 ;;; Copyright © 2021 Christopher Howard <[email-masked]>
 ;;; Copyright © 2023 Herman Rimm <[email-masked]>
+;;; Copyright © 2024 gemmaro <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -40,6 +41,7 @@
 
 (define-module (gnu packages web-browsers)
   #:use-module (guix build-system cmake)
+  #:use-module (guix build-system copy)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system go)
@@ -555,6 +557,31 @@ (define-public qutebrowser
 GUI.  It is based on PyQt6 and QtWebEngine.")
     (license license:gpl3+)))
 
+(define-public qute-gemini
+  (package
+    (name "qute-gemini")
+    (version "1.0.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://git.sr.ht/~sotirisp/qute-gemini")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1cyx8q0yrppcfbs560wzzsa1bn1hmsjlv1llv50dpdagg2z07vfi"))))
+    (build-system copy-build-system)
+    (arguments
+     (list
+      #:install-plan #~(list (list "qute-gemini" "/share/qute-gemini/"))))
+    (inputs (list python))
+    (home-page "https://git.sr.ht/~sotirisp/qute-gemini")
+    (synopsis "qutebrowser userscript for Gemini pages")
+    (description "qute-gemini is a qutebrowser userscript that allows viewing Gemini
+pages by pressing a custom key.  The pages are converted to HTML by
+the script and then displayed in qutebrowser.")
+    (license license:gpl3+)))
+
 (define-public vimb
   (package
     (name "vimb")

base-commit: a800c49fb767f549fbc0eefe8dce6daa5da8604c
-- 
2.45.2