[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
19/20: gnu: go-github-com-tdewolff-minify-v2: Regenerate hash.
From: |
guix-commits |
Subject: |
19/20: gnu: go-github-com-tdewolff-minify-v2: Regenerate hash. |
Date: |
Wed, 6 Sep 2023 01:27:56 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit c14c25b4fb625c2a5b9512618b3eb17ff15f7e71
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Thu Aug 10 19:43:13 2023 +0800
gnu: go-github-com-tdewolff-minify-v2: Regenerate hash.
* gnu/packages/golang.scm (go-github-com-tdewolff-minify-v2)[#:phases]: Add
phase 'regenerate-hash.
[native-inputs]: Add go-github-com-tdewolff-hasher.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
---
gnu/packages/golang.scm | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 44953d6111..3c486c4121 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3685,11 +3685,24 @@ per-goroutine.")
"0h006wpfkl0ls0skqxblwcanrhmphgq5q0ii26l2ayh7s99cgmy3"))))
(build-system go-build-system)
(arguments
- (list #:import-path "github.com/tdewolff/minify/v2"))
+ (list #:import-path "github.com/tdewolff/minify/v2"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'regenerate-hash
+ (lambda* (#:key import-path #:allow-other-keys)
+ (for-each
+ (lambda (dir)
+ (with-directory-excursion
+ (format #f "src/~a/~a" import-path dir)
+ (make-file-writable "hash.go")
+ (format #t "Generating `hash.go' for ~a...~%" dir)
+ (invoke "go" "generate")))
+ '("css" "html" "svg")))))))
(propagated-inputs
(list go-github-com-tdewolff-parse-v2))
(native-inputs
- (list go-github-com-tdewolff-test))
+ (list go-github-com-tdewolff-hasher
+ go-github-com-tdewolff-test))
(home-page "https://go.tacodewolff.nl/minify")
(synopsis "Go minifiers for web formats")
(description
- 12/20: gnu: rtaudio: Update to 5.2.0., (continued)
- 12/20: gnu: rtaudio: Update to 5.2.0., guix-commits, 2023/09/06
- 13/20: gnu: zrythm: Enable rtaudio., guix-commits, 2023/09/06
- 14/20: gnu: Add go-github-com-dgryski-go-metro., guix-commits, 2023/09/06
- 20/20: gnu: gmime: Update home-page URL., guix-commits, 2023/09/06
- 06/20: gnu: bear: Update to 3.1.3., guix-commits, 2023/09/06
- 03/20: doc: Fix typo., guix-commits, 2023/09/06
- 08/20: gnu: gambit-c: Update to 4.9.5., guix-commits, 2023/09/06
- 10/20: gnu: gst-plugins-bad: Remove the svt-hevc input., guix-commits, 2023/09/06
- 11/20: gnu-maintenance: Do not error when there are no candidates., guix-commits, 2023/09/06
- 15/20: gnu: Add go-github-com-dgryski-go-mph., guix-commits, 2023/09/06
- 19/20: gnu: go-github-com-tdewolff-minify-v2: Regenerate hash.,
guix-commits <=
- 16/20: gnu: Add go-github-com-cespare-mph., guix-commits, 2023/09/06
- 17/20: gnu: Add go-github-com-tdewolff-hasher., guix-commits, 2023/09/06
- 18/20: gnu: go-github-com-tdewolff-parse-v2: Regenerate hash., guix-commits, 2023/09/06