[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#66827] [PATCH 22/67] gnu: go-github-com-tdewolff-minify-v2: Move to
From: |
Sharlatan Hellseher |
Subject: |
[bug#66827] [PATCH 22/67] gnu: go-github-com-tdewolff-minify-v2: Move to (gnu packages golang-web). |
Date: |
Wed, 8 Nov 2023 00:40:59 +0000 |
* gnu/packages/golang.scm (go-github-com-tdewolff-minify-v2): Move from
here...
* gnu/packages/golang-web.scm: ...to here.
Change-Id: I4cee7a25e618cc7427d8669c4b17d028817e378f
---
gnu/packages/golang-web.scm | 43 +++++++++++++++++++++++++++++++++++++
gnu/packages/golang.scm | 40 ----------------------------------
2 files changed, 43 insertions(+), 40 deletions(-)
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 5be08caf2e..d82cac46b9 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -7,6 +7,7 @@
;;; Copyright © 2021, 2022 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2022 Giacomo Leidi <goodoldpaul@autistici.org>
;;; Copyright © 2022 muradm <mail@muradm.net>
+;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space>
;;; Copyright © 2023 Nicolas Graves <ngraves@ngraves.fr>
;;;
;;; This file is part of GNU Guix.
@@ -28,6 +29,7 @@ (define-module (gnu packages golang-web)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix build-system go)
+ #:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (gnu packages)
#:use-module (gnu packages golang)
@@ -466,6 +468,47 @@ (define-public go-github-com-sourcegraph-jsonrpc2
"Package jsonrpc2 provides a Go implementation of JSON-RPC 2.0.")
(license license:expat)))
+(define-public go-github-com-tdewolff-minify-v2
+ (package
+ (name "go-github-com-tdewolff-minify-v2")
+ (version "2.12.7")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tdewolff/minify")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0qhslaq885zbqs83nvbi29yh09b89kkb6ycami8lz28wkwrlayap"))))
+ (build-system go-build-system)
+ (arguments
+ (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-hasher
+ go-github-com-tdewolff-test))
+ (home-page "https://go.tacodewolff.nl/minify")
+ (synopsis "Go minifiers for web formats")
+ (description
+ "This package provides HTML5, CSS3, JS, JSON, SVG and XML minifiers and
+an interface to implement any other minifier.")
+ (license license:expat)))
+
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 4a7060f065..70208b87b6 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3436,46 +3436,6 @@ (define-public go-github-com-tdewolff-hasher
@code{string} to @code{uint32} mapper.")
(license license:bsd-3)))
-(define-public go-github-com-tdewolff-minify-v2
- (package
- (name "go-github-com-tdewolff-minify-v2")
- (version "2.12.7")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/tdewolff/minify")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0qhslaq885zbqs83nvbi29yh09b89kkb6ycami8lz28wkwrlayap"))))
- (build-system go-build-system)
- (arguments
- (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-hasher
- go-github-com-tdewolff-test))
- (home-page "https://go.tacodewolff.nl/minify")
- (synopsis "Go minifiers for web formats")
- (description
- "This package provides HTML5, CSS3, JS, JSON, SVG and XML minifiers and
-an interface to implement any other minifier.")
- (license license:expat)))
-
(define-public go-github-com-tdewolff-parse-v2
(package
(name "go-github-com-tdewolff-parse-v2")
--
2.41.0
- [bug#66827] [PATCH 12/67] gnu: go-github-com-felixge-httpsnoop: Move to (gnu packages golang-web)., (continued)
- [bug#66827] [PATCH 12/67] gnu: go-github-com-felixge-httpsnoop: Move to (gnu packages golang-web)., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 17/67] gnu: go-github-com-jcmturner-dnsutils-v2: Move to (gnu packages golang-web)., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 15/67] gnu: go-github-com-jcmturner-gokrb5-v8: Move to (gnu packages golang-web)., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 19/67] gnu: go-github-com-jcmturner-goidentity-v6: Move to (gnu packages golang-web)., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 20/67] gnu: go-github-com-jcmturner-goidentity-v6: Adjust inputs., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 21/67] gnu: go-github-com-gorilla-csrf: Move to (gnu packages golang-web)., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 26/67] gnu: go-github-com-google-safehtml: Move to (gnu packages golang-web)., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 10/67] gnu: go-github-com-gorilla-handlers: Move to (gnu packages golang-web)., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 14/67] gnu: go-github-com-gorilla-sessions: Move to (gnu packages golang-web)., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 18/67] gnu: go-github-com-jcmturner-dnsutils-v2: Adjust inputs., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 22/67] gnu: go-github-com-tdewolff-minify-v2: Move to (gnu packages golang-web).,
Sharlatan Hellseher <=
- [bug#66827] [PATCH 23/67] gnu: go-github-com-tdewolff-parse-v2: Move to (gnu packages golang-web)., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 36/67] gnu: go-github-com-emicklei-go-restful: Move to (gnu packages golang-web)., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 38/67] gnu: go-github-com-opentracing-opentracing-go: Move to (gnu packages golang-web)., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 24/67] gnu: go-github-com-gorilla-context: Move to (gnu packages golang-web)., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 32/67] gnu: go-github-com-aws-sdk: Move to (gnu packages golang-web)., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 33/67] gnu: go-github-com-valyala-fasthttp: Move to (gnu packages golang-web)., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 37/67] gnu: go-github-com-tv42-httpunix: Move to (gnu packages golang-web)., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 34/67] gnu: go-github-com-go-chi-chi-v5: Move to (gnu packages golang-web)., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 41/67] gnu: go-github-com-goccy-go-json: Move to (gnu packages golang-web)., Sharlatan Hellseher, 2023/11/07
- [bug#66827] [PATCH 16/67] gnu: go-github-com-jcmturner-gokrb5-v8: Adjust inputs., Sharlatan Hellseher, 2023/11/07