* [bug#68311] [PATCH] gnu: go-github-com-charmbracelet-glamour: Fix build.
@ 2024-01-07 22:33 Artyom V. Poptsov
2024-01-12 16:29 ` bug#68311: " Mathieu Othacehe
0 siblings, 1 reply; 2+ messages in thread
From: Artyom V. Poptsov @ 2024-01-07 22:33 UTC (permalink / raw)
To: 68311
[-- Attachment #1.1: Type: text/plain, Size: 70 bytes --]
Hello,
this patch fixes 'go-github-com-charmbracelet-glamour' build.
[-- Attachment #1.2: 0001-gnu-go-github-com-charmbracelet-glamour-Fix-build.patch --]
[-- Type: text/x-diff, Size: 2402 bytes --]
From f579a9338598e2a947e5b37b8248acf7d17f13d5 Mon Sep 17 00:00:00 2001
Message-ID: <f579a9338598e2a947e5b37b8248acf7d17f13d5.1704666787.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Mon, 8 Jan 2024 01:30:11 +0300
Subject: [PATCH] gnu: go-github-com-charmbracelet-glamour: Fix build.
* gnu/packages/golang.scm (go-github-com-charmbracelet-glamour): Fix build.
Change-Id: I14ce450360e684c4c1ac324e77b47771bbdf1410
---
gnu/packages/golang.scm | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 58681af958..baa6e631d6 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -41,7 +41,7 @@
;;; Copyright © 2022 Christopher Howard <christopher@librehacker.com>
;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space>
;;; Copyright © 2023 Timo Wilken <guix@twilken.net>
-;;; Copyright © 2023 Artyom V. Poptsov <poptsov.artyom@gmail.com>
+;;; Copyright © 2023-2024 Artyom V. Poptsov <poptsov.artyom@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -9004,7 +9004,20 @@ (define-public go-github-com-charmbracelet-glamour
"1idq8d13rp1hx2a1xak31fwl9fmi09p2x4ymvzl7aj850saw5w0z"))))
(build-system go-build-system)
(arguments
- `(#:import-path "github.com/charmbracelet/glamour"))
+ (list #:import-path "github.com/charmbracelet/glamour"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-tests
+ (lambda _
+ ;; Some tests fail due to different number of '^[0m' symbols at
+ ;; the beginning and the end of paragraphs. To fix that we
+ ;; re-generate 'readme.test' so the test output will match the
+ ;; 'readme.test' contents.
+ (chmod "src/github.com/charmbracelet/glamour/testdata/readme.test"
+ #o644)
+ (substitute* "src/github.com/charmbracelet/glamour/glamour_test.go"
+ ((" generate = false")
+ " generate = true")))))))
(native-inputs
(list go-github-com-alecthomas-chroma
go-github-com-danwakefield-fnmatch
base-commit: 5f8a993aa85554ca09bd27139230d7664107e1b6
--
2.41.0
[-- Attachment #1.3: Type: text/plain, Size: 216 bytes --]
- avp
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 869 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-12 16:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-07 22:33 [bug#68311] [PATCH] gnu: go-github-com-charmbracelet-glamour: Fix build Artyom V. Poptsov
2024-01-12 16:29 ` bug#68311: " Mathieu Othacehe
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).