From fd2c10d71408e7f23f49e1de614b5ef5d5866003 Mon Sep 17 00:00:00 2001 From: Arthur Rodrigues Date: Sun, 17 Aug 2025 15:54:08 -0300 Subject: [PATCH] gnu: Add go-github-com-lestrrat-go-httpcc. * gnu/packages/golang-web.scm (go-github-com-lestrrat-go-httpcc): New variable. Change-Id: I090fd09e5a5b53a6690e5843ae906f7f1c10da87 Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-web.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index fe848f4f64a..f77093f830a 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -42,6 +42,7 @@ ;;; Copyright © 2025 André Batista ;;; Copyright © 2025 Jussi Timperi ;;; Copyright © 2025 Ashvith Shetty +;;; Copyright © 2025 Arthur Rodrigues ;;; ;;; This file is part of GNU Guix. ;;; @@ -5749,6 +5750,33 @@ Features: @end itemize") (license license:expat))) +(define-public go-github-com-lestrrat-go-httpcc + (package + (name "go-github-com-lestrrat-go-httpcc") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/lestrrat-go/httpcc") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "12wsr6ipl3h7iaq7s7a2mgkbli9z5zpxj9dxqhzqn33akb055i28")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/lestrrat-go/httpcc")) + (native-inputs + (list go-github-com-stretchr-testify)) + (home-page "https://github.com/lestrrat-go/httpcc") + (synopsis "HTTP/1.1 Cache-Control header parser for Golang") + (description + "This package provides a Go library that parses HTTP/1.1 Cache-Control +header and returns a struct that is convenient for the end-user to do what +they will with.") + (license license:expat))) + (define-public go-github-com-letsencrypt-challtestsrv (package (name "go-github-com-letsencrypt-challtestsrv")