unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Hilton Chain via Guix-patches via <guix-patches@gnu.org>
To: 65204@debbugs.gnu.org
Cc: Hilton Chain <hako@ultrarare.space>
Subject: [bug#65204] [PATCH 5/6] gnu: go-github-com-tdewolff-parse-v2: Regenerate hash.
Date: Thu, 10 Aug 2023 19:43:12 +0800	[thread overview]
Message-ID: <5fc910a54b6027a6cdbe7fe2fabf476b73861489.1691666406.git.hako@ultrarare.space> (raw)
In-Reply-To: <cover.1691666406.git.hako@ultrarare.space>

* gnu/packages/golang.scm (go-github-com-tdewolff-parse-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 21562a135f..4360fccc0a 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3471,9 +3471,22 @@ (define-public go-github-com-tdewolff-parse-v2
                 "1dqki9ima079k9a3l72igmx5dml8qsl9z8rzw8a433f4gjhlv320"))))
     (build-system go-build-system)
     (arguments
-     (list #:import-path "github.com/tdewolff/parse/v2"))
+     (list #:import-path "github.com/tdewolff/parse/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")))))))
     (native-inputs
-     (list go-github-com-tdewolff-test))
+     (list go-github-com-tdewolff-hasher
+           go-github-com-tdewolff-test))
     (home-page "https://github.com/tdewolff/parse")
     (synopsis "Go parsers for web formats")
     (description
-- 
2.41.0





  parent reply	other threads:[~2023-08-10 11:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-10 11:40 [bug#65204] [PATCH 0/6] gnu: Add go-github-com-tdewolff-hasher Hilton Chain via Guix-patches via
2023-08-10 11:43 ` [bug#65204] [PATCH 1/6] gnu: Add go-github-com-dgryski-go-metro Hilton Chain via Guix-patches via
2023-08-10 11:43 ` [bug#65204] [PATCH 2/6] gnu: Add go-github-com-dgryski-go-mph Hilton Chain via Guix-patches via
2023-08-10 11:43 ` [bug#65204] [PATCH 3/6] gnu: Add go-github-com-cespare-mph Hilton Chain via Guix-patches via
2023-08-10 11:43 ` [bug#65204] [PATCH 4/6] gnu: Add go-github-com-tdewolff-hasher Hilton Chain via Guix-patches via
2023-08-10 11:43 ` Hilton Chain via Guix-patches via [this message]
2023-08-21 14:03   ` [bug#65204] [PATCH 0/6] " Ludovic Courtès
2023-08-21 15:20     ` Hilton Chain via Guix-patches via
2023-08-10 11:43 ` [bug#65204] [PATCH 6/6] gnu: go-github-com-tdewolff-minify-v2: Regenerate hash Hilton Chain via Guix-patches via
2023-09-06  5:28 ` bug#65204: [PATCH 0/6] gnu: Add go-github-com-tdewolff-hasher Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5fc910a54b6027a6cdbe7fe2fabf476b73861489.1691666406.git.hako@ultrarare.space \
    --to=guix-patches@gnu.org \
    --cc=65204@debbugs.gnu.org \
    --cc=hako@ultrarare.space \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).