Subject: [PATCH] gnu: go-github-com-charmbracelet-harmonica: Remove examples.
From: Troy Figiel <[email-masked]>
To: [email-masked]
Date: Sat, 17 Feb 2024 11:17:46 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/golang.scm (go-github-com-charmbracelet-harmonica): Remove examples.
[arguments] <#:phases>: Add remove-examples phase.
---
 gnu/packages/golang.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 527b63d160..3394b8e127 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7872,7 +7872,13 @@ (define-public go-github-com-charmbracelet-harmonica
         (base32 "1aasg0c0xxhwav4ivm1mqmsqab6lk407xky8c19pb85r1hdbq0n7"))))
     (build-system go-build-system)
     (arguments
-     '(#:import-path "github.com/charmbracelet/harmonica"))
+     (list
+      #:import-path "github.com/charmbracelet/harmonica"
+      #: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")))))))
     (home-page "https://github.com/charmbracelet/harmonica")
     (synopsis "Simple, physics-based animation library")
     (description

base-commit: 91d80460296e2d5a01704d0f34fb966a45a165ae
-- 
2.42.0