gnu: go-mvdan-cc-xurls: Move to golang-web.

* gnu/packages/golang.scm (go-mvdan-cc-xurls, xurls): Move from here...
* gnu/packages/golang-web.scm: ... to here.
* gnu/packages/messaging.scm: Add golang-web module.

Change-Id: I990e5dff7d5813dc4b1c40e9a7707901235af458
This commit is contained in:
Sharlatan Hellseher 2024-08-11 11:44:25 +01:00
parent ddeb013054
commit 4412d0e160
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5
3 changed files with 45 additions and 43 deletions

View file

@ -3683,6 +3683,34 @@ Signing and Encryption set of standards. This includes support for JSON Web
Encryption, JSON Web Signature, and JSON Web Token standards.") Encryption, JSON Web Signature, and JSON Web Token standards.")
(license license:asl2.0))) (license license:asl2.0)))
(define-public go-mvdan-cc-xurls
(package
(name "go-mvdan-cc-xurls")
(version "2.5.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mvdan/xurls")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1516hwlxbnhdca56qy7sx9h2n5askq6ddqpqyp3f5rvmzdkxf4zn"))))
(build-system go-build-system)
(arguments
(list
#:import-path "mvdan.cc/xurls/v2"))
(propagated-inputs
(list go-github-com-rogpeppe-go-internal
go-golang-org-x-mod
go-golang-org-x-sync))
(home-page "https://mvdan.cc/xurls/v2/")
(synopsis "Extracts URLs from text")
(description
"Xurls extracts urls from plain text using regular expressions. It can
be used as both a binary and a library.")
(license license:bsd-3)))
(define-public go-nhooyr-io-websocket (define-public go-nhooyr-io-websocket
(package (package
(name "go-nhooyr-io-websocket") (name "go-nhooyr-io-websocket")
@ -3747,6 +3775,22 @@ go-github-com-multiformats-go-multiaddr-dns.")))
(description "This package provides a CLI binary executible built from (description "This package provides a CLI binary executible built from
go-github-com-tdewolff-minify-v2 source."))) go-github-com-tdewolff-minify-v2 source.")))
(define-public xurls
(package
(inherit go-mvdan-cc-xurls)
(name "xurls")
(arguments
(list
#:import-path "mvdan.cc/xurls/v2/cmd/xurls"
#:unpack-path "mvdan.cc/xurls/v2"
#:install-source? #f
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(delete-file "testdata/script/version.txtar")))))))))
;;; ;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; 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 ;;; of a merge conflict, place them above by existing packages with similar

View file

@ -7492,49 +7492,6 @@ That is, @code{gofumpt} is happy with a subset of the formats that
(native-inputs '()) (native-inputs '())
(inputs '()))) (inputs '())))
(define-public go-mvdan-cc-xurls
(package
(name "go-mvdan-cc-xurls")
(version "2.5.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mvdan/xurls")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1516hwlxbnhdca56qy7sx9h2n5askq6ddqpqyp3f5rvmzdkxf4zn"))))
(build-system go-build-system)
(arguments
`(#:import-path "mvdan.cc/xurls/v2"))
(propagated-inputs
(list go-github-com-rogpeppe-go-internal
go-golang-org-x-mod
go-golang-org-x-sync))
(home-page "https://mvdan.cc/xurls/v2/")
(synopsis "Extracts URLs from text")
(description
"Xurls extracts urls from plain text using regular expressions. It can
be used as both a binary and a library.")
(license license:bsd-3)))
(define-public xurls
(package
(inherit go-mvdan-cc-xurls)
(name "xurls")
(arguments
(list
#:import-path "mvdan.cc/xurls/v2/cmd/xurls"
#:unpack-path "mvdan.cc/xurls/v2"
#:install-source? #f
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(delete-file "testdata/script/version.txtar")))))))))
(define-public go-github-com-davecgh-go-xdr (define-public go-github-com-davecgh-go-xdr
(package (package
(name "go-github-com-davecgh-go-xdr") (name "go-github-com-davecgh-go-xdr")

View file

@ -94,6 +94,7 @@
#:use-module (gnu packages gnupg) #:use-module (gnu packages gnupg)
#:use-module (gnu packages golang) #:use-module (gnu packages golang)
#:use-module (gnu packages golang-build) #:use-module (gnu packages golang-build)
#:use-module (gnu packages golang-web)
#:use-module (gnu packages golang-xyz) #:use-module (gnu packages golang-xyz)
#:use-module (gnu packages gperf) #:use-module (gnu packages gperf)
#:use-module (gnu packages graphviz) #:use-module (gnu packages graphviz)