sharlatan pushed a commit to branch go-team
in repository guix.

commit 1f014ac6a56c2fb434ba243aa308594d49dde8cc
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Dec 5 22:30:43 2024 +0000

    gnu: go-github-com-charmbracelet-lipgloss: Remove examples.
    
    * gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-lipgloss)
    [arguments]<phases>: Add 'remove-examples.
    
    Change-Id: I4ea4f699df2eb9d1558ba5ac8f6247c5d92214e0
---
 gnu/packages/golang-xyz.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index be78057f5f..a4100b9d5a 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1670,7 +1670,13 @@ tools.")
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path "github.com/charmbracelet/lipgloss"))
+      #:import-path "github.com/charmbracelet/lipgloss"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'remove-examples
+            (lambda* (#:key import-path #:allow-other-keys)
+              (delete-file-recursively
+               (string-append "src/" import-path "/examples")))))))
     (propagated-inputs
      (list go-github-com-aymanbagabas-go-udiff
            go-github-com-charmbracelet-x-ansi

Reply via email to