[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65204] [PATCH 6/6] gnu: go-github-com-tdewolff-minify-v2: Regenerat
From: |
Hilton Chain |
Subject: |
[bug#65204] [PATCH 6/6] gnu: go-github-com-tdewolff-minify-v2: Regenerate hash. |
Date: |
Thu, 10 Aug 2023 19:43:13 +0800 |
* gnu/packages/golang.scm (go-github-com-tdewolff-minify-v2)[#:phases]: Add
phase 'regenerate-hash.
[native-inputs]: Add go-github-com-tdewolff-hasher.
---
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 4360fccc0a..0cac1e0149 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3444,11 +3444,24 @@ (define-public go-github-com-tdewolff-minify-v2
"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
--
2.41.0
- [bug#65204] [PATCH 0/6] gnu: Add go-github-com-tdewolff-hasher., Hilton Chain, 2023/08/10
- [bug#65204] [PATCH 1/6] gnu: Add go-github-com-dgryski-go-metro., Hilton Chain, 2023/08/10
- [bug#65204] [PATCH 4/6] gnu: Add go-github-com-tdewolff-hasher., Hilton Chain, 2023/08/10
- [bug#65204] [PATCH 2/6] gnu: Add go-github-com-dgryski-go-mph., Hilton Chain, 2023/08/10
- [bug#65204] [PATCH 3/6] gnu: Add go-github-com-cespare-mph., Hilton Chain, 2023/08/10
- [bug#65204] [PATCH 5/6] gnu: go-github-com-tdewolff-parse-v2: Regenerate hash., Hilton Chain, 2023/08/10
- [bug#65204] [PATCH 6/6] gnu: go-github-com-tdewolff-minify-v2: Regenerate hash.,
Hilton Chain <=