gnu: Add go-github-com-sebest-xff.

* gnu/packages/golang-web.scm (go-github-com-sebest-xff): New variable.

Change-Id: Ia7542a0e68ceb781eff1c4055dfe28aaf475f272
This commit is contained in:
Sharlatan Hellseher 2025-09-06 22:34:34 +01:00
parent 878c1a8df8
commit 98182c8f07
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -9879,6 +9879,39 @@ information or even the peer of a VETH interface.")
"Package jsonschema provides json-schema compilation and validation.") "Package jsonschema provides json-schema compilation and validation.")
(license license:asl2.0))) (license license:asl2.0)))
(define-public go-github-com-sebest-xff
(package
(name "go-github-com-sebest-xff")
(version "0.0.0-20210106013422-671bd2870b3a")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/sebest/xff")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "06is8vvgxsis4sdr1d1n7p5g16x3rrw86qwkiwgamm5vnjkrvcdp"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/sebest/xff"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'remove-examples
(lambda* (#:key tests? import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(delete-file-recursively "examples")))))))
(native-inputs
(list go-github-com-stretchr-testify))
(home-page "https://github.com/sebest/xff")
(synopsis "X-Forwarded-For middleware fo Golang")
(description
"Package @@code{xff} is a @code{net/http} middleware/handler to parse
@url{http://tools.ietf.org/html/rfc7239, Forwarded HTTP Extension} in
Golang.")
(license license:expat)))
(define-public go-github-com-sherclockholmes-webpush-go (define-public go-github-com-sherclockholmes-webpush-go
(package (package
(name "go-github-com-sherclockholmes-webpush-go") (name "go-github-com-sherclockholmes-webpush-go")