From 8305e754334b6a1a13820f6e8629a6982cec8ee6 Mon Sep 17 00:00:00 2001 From: jgart Date: Mon, 27 Oct 2025 14:13:47 -0500 Subject: [PATCH] gnu: Add go-codeberg-org-tslocum-gmitohtml. * gnu/packages/golang-web.scm (go-codeberg-org-tslocum-gmitohtml): New variable. Change-Id: I5e14598628eefeff66fecc471e518a20328d4a36 Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-web.scm | 39 ++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 94b393d3c5e28948c08d253a405f00587f9d808a..b1f4cc73250ed15c0b63dd17640f2dd5b3b21935 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -21,7 +21,7 @@ ;;; Copyright © 2022 Dhruvin Gandhi ;;; Copyright © 2022 Giacomo Leidi ;;; Copyright © 2022 Leo Nikkilä -;;; Copyright © 2022 jgart via Guix-patches via +;;; Copyright © 2022, 2025 jgart via Guix-patches via ;;; Copyright © 2022 muradm ;;; Copyright © 2022, 2023, 2025 Sharlatan Hellseher ;;; Copyright © 2023 Felix Lechner @@ -70,6 +70,7 @@ #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages crypto) + #:use-module (gnu packages freedesktop) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) @@ -275,6 +276,42 @@ corresponds to the highest supported version of the gitea API, but backwards-compatibility is mostly given.") (license license:expat))) +(define-public go-codeberg-org-tslocum-gmitohtml + (package + (name "go-codeberg-org-tslocum-gmitohtml") + (version "1.0.6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://codeberg.org/tslocum/gmitohtml.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "04dxnvrygxxm0z4vvyh11qv3cscjlfwp9wm6wkcibxra3qa7a0vb")))) + (build-system go-build-system) + (arguments + (list + ;; XXX: There a no tests, upstream have no keen to write documentation + ;; or unit tests, see . + #:tests? #f + #:import-path "codeberg.org/tslocum/gmitohtml" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-xdg-command + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/codeberg.org/tslocum/gmitohtml/main.go" + (("xdg-open") + (search-input-file inputs "bin/xdg-open")))))))) + (inputs (list xdg-utils)) + (propagated-inputs + (list go-gopkg-in-yaml-v2)) + (home-page "https://codeberg.org/tslocum/gmitohtml") + (synopsis "Gemini to HTML conversion tool and daemon") + (description + "This package provides a Gemini to HTML conversion tool and daemon.") + (license license:expat))) + (define-public go-connectrpc-com-connect (package (name "go-connectrpc-com-connect")