guix-patches
[Top][All Lists]
Advanced

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

[bug#69113] [PATCH] gnu: go-github-com-schollz-progressbar-v3: Remove ex


From: Troy Figiel
Subject: [bug#69113] [PATCH] gnu: go-github-com-schollz-progressbar-v3: Remove examples.
Date: Tue, 13 Feb 2024 20:47:14 +0100

* gnu/packages/golang.scm (go-github-com-schollz-progressbar-v3): Remove
examples.
[arguments]<#:phases>: Add remove-examples phase.
---
 gnu/packages/golang.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 25e9715c79..c317e40979 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -10227,6 +10227,10 @@ (define-public go-github-com-schollz-progressbar-v3
      (list #:import-path "github.com/schollz/progressbar/v3"
            #: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"))))
                (replace 'check
                  (lambda* (#:key tests? import-path #:allow-other-keys)
                    (when tests?

base-commit: ac470c516e19f194228edf9e348bdbc7fc10f97a
-- 
2.42.0






reply via email to

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