From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GEcxFd7N1GSrIgEASxT56A (envelope-from ) for ; Thu, 10 Aug 2023 13:45:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sAYNFN7N1GTxGQEAG6o9tA (envelope-from ) for ; Thu, 10 Aug 2023 13:45:34 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 210F752503 for ; Thu, 10 Aug 2023 13:45:34 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=L4dZCoJj; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691667934; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=VCvQlx8RmWl84CWmZG7FuLJE6Hy21Fqgt2wnhp2M4B8=; b=gokuKPpNamlG1nwOyX40V60herJHcolyobRnVcmXhkUWGyLwhlF1Q7fJtAtIh6V2j1/IW7 2xF1kH6NuWx3YpzsOFgT+ob6m+1ASE/Fsl5TcWRhbB2fK/A1UUCNDzmikrtN+61ppa8MRu h01kxh42DJT8aUYi1Rb2Yd+CtIZXpe61KFFy62Vkm0LaP92DD2Ed7lJL03Y7/TfQcUpt7n r3L7xVYIZtmCbwW6DEPdVc4uriDjC9areBvwmFGP5E/6xtyW+3D+WgoT0xJwhPjiSBTK4F iV6xNf0Nen3MYM0+S2YEo3pgunle1EUzENB+81fFaZx1zX/2FNOdUa09epmEvg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691667934; a=rsa-sha256; cv=none; b=prVd5MoZy3iH4dPxNQ2utUnwHEAgpu3KaiJc7eMMZXj67USPYDhLuwtNK2AhonUrwiTylg Tszgb05LMqdXJj4Hg39AmNWXtGyiozo8NCc5cCUJjVfw/gxKxBokmKb5YXX+a79+eLYLdE ilEuFoHioEglbpyhHJ3FXH36uAVZdS3kWeFtQafp75ertUuCDzAOK7WKZAku9AiFRH/Zwo qAACYpDAO+VJV9/P8ypgpI4BzPGVVatqSC7zLlYMWyFgNG/5DP4ekfQo/JnQ2ywLSGukRu yfabSOnDaPolHBdNMANdKP+f7+IRUTwFtQ/5chTrYqK0K+R8iqKC1op0rtROFA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=L4dZCoJj; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qU46G-0000tv-G6; Thu, 10 Aug 2023 07:45:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qU46C-0000qj-1n for guix-patches@gnu.org; Thu, 10 Aug 2023 07:45:04 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qU46B-0005C6-NW for guix-patches@gnu.org; Thu, 10 Aug 2023 07:45:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qU46B-000750-In for guix-patches@gnu.org; Thu, 10 Aug 2023 07:45:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65204] [PATCH 6/6] gnu: go-github-com-tdewolff-minify-v2: Regenerate hash. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 10 Aug 2023 11:45:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65204 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65204@debbugs.gnu.org Cc: Hilton Chain Received: via spool by 65204-submit@debbugs.gnu.org id=B65204.169166784927105 (code B ref 65204); Thu, 10 Aug 2023 11:45:03 +0000 Received: (at 65204) by debbugs.gnu.org; 10 Aug 2023 11:44:09 +0000 Received: from localhost ([127.0.0.1]:41569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU45I-000737-PE for submit@debbugs.gnu.org; Thu, 10 Aug 2023 07:44:09 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:56722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU45E-00072f-Jh for 65204@debbugs.gnu.org; Thu, 10 Aug 2023 07:44:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1691667839; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VCvQlx8RmWl84CWmZG7FuLJE6Hy21Fqgt2wnhp2M4B8=; b=L4dZCoJj9dnFcgEOmqhNQJ21OY5SN9l7rcCSvTOsDVHChuAsedt8rzmGwW9W4xi2iGEE5k wq1hPbucWo9TQb/eqk3oH0SsyegZ0L+La/JGDdw5tRAJSUydmFfhvSUj0qV8Gg814NqolX 1SlUA2cu5r9spI89V9JIX9ikKHYA+u5bcRhHDwMPWl1hAx1FMtVLmhaTJcIAkm5Am80IjE R65QBeGIh6qlZDGfxcqFciT6hwC9K+iDWgFtUkmdO1rvjE+OdeFvlUPBBKp0xKqtqvCy17 how47ATDdazOLSdoSyw4+fp+cIPVMJwqALMxN86TB4sApZ3MW9+DG9tbDV7oDQ== Date: Thu, 10 Aug 2023 19:43:13 +0800 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: -- X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 210F752503 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -6.17 X-Spam-Score: -6.17 X-TUID: rPbyToy6onnG * 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