guix-commits
[Top][All Lists]
Advanced

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

07/16: gnu: go-github-com-goccy-yaml: Remove benchmarks.


From: guix-commits
Subject: 07/16: gnu: go-github-com-goccy-yaml: Remove benchmarks.
Date: Tue, 13 Feb 2024 16:27:31 -0500 (EST)

sharlatan pushed a commit to branch master
in repository guix.

commit 0f19437ab8c1c4b6e26cdd78ba89f1a0cd18b86b
Author: Troy Figiel <troy@troyfigiel.com>
AuthorDate: Sun Feb 11 11:44:11 2024 +0100

    gnu: go-github-com-goccy-yaml: Remove benchmarks.
    
    * gnu/packages/golang.scm (go-github-com-goccy-yaml): Remove benchmarks.
    [arguments] <#:phases>: Add remove-benchmarks phase.
    
    Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
    Change-Id: I4249df3ab64d734ebf561e84f6bbc7ed50ff3a1b
---
 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 17db9dd9b9..7daeaa1c86 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -8947,7 +8947,13 @@ modifying them.")
         (base32 "1nps58dwkd915mx35h5f0dc05b880b4fdl6dcjxpfmmbzyinvg38"))))
     (build-system go-build-system)
     (arguments
-     `(#:import-path "github.com/goccy/go-yaml"))
+     (list
+      #:import-path "github.com/goccy/go-yaml"
+      #:phases #~(modify-phases %standard-phases
+                   (add-after 'unpack 'remove-benchmarks
+                     (lambda* (#:key import-path #:allow-other-keys)
+                       (delete-file-recursively
+                        (string-append "src/" import-path "/benchmarks")))))))
     (propagated-inputs
      (list go-github-com-fatih-color go-golang-org-x-xerrors))
     (native-inputs



reply via email to

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