guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

10/16: gnu: go-github-com-charmbracelet-bubbletea: Remove examples.


From: guix-commits
Subject: 10/16: gnu: go-github-com-charmbracelet-bubbletea: Remove examples.
Date: Tue, 13 Feb 2024 16:27:32 -0500 (EST)

sharlatan pushed a commit to branch master
in repository guix.

commit 14ea50518d26060b12149078371b4a50e0dee938
Author: Troy Figiel <troy@troyfigiel.com>
AuthorDate: Sun Feb 11 01:24:12 2024 +0100

    gnu: go-github-com-charmbracelet-bubbletea: Remove examples.
    
    * gnu/packages/golang.scm (go-github-com-charmbracelet-bubbletea): Remove
    examples and tutorials.
    [arguments] <#:phases>: Add remove-examples phase.
    
    Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
    Change-Id: Ic4ed211ae0fa0849770264ccc950a73d55cd70c4
---
 gnu/packages/golang.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 50a73a1ae3..a91dca5206 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9707,7 +9707,14 @@ string.")
          "1105cggi5fwqx69m0vrhgwx6kaw82w4ahn58sj0a81603c4yvrk0"))))
     (build-system go-build-system)
     (arguments
-     `(#:import-path "github.com/charmbracelet/bubbletea"))
+     (list
+      #:import-path "github.com/charmbracelet/bubbletea"
+      #:phases #~(modify-phases %standard-phases
+                   (add-after 'unpack 'remove-examples
+                     (lambda* (#:key import-path #:allow-other-keys)
+                       (with-directory-excursion (string-append "src/" 
import-path)
+                         (for-each delete-file-recursively
+                                   '("examples" "tutorials"))))))))
     (propagated-inputs
      `(("github.com/mattn/go-isatty" ,go-github-com-mattn-go-isatty)
        ("github.com/muesli/termenv" ,go-github-com-muesli-termenv)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]