From d01a87dd2563142bca0f194dbb6fa14df284fd4b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Dec 2024 20:57:30 +0000 Subject: [PATCH] gnu: Add go-github-com-gin-gonic-gin. * gnu/packages/golang-web.scm (go-github-com-gin-gonic-gin): New variable. Change-Id: If4b1eb590f0dc26210597d7f52854ef4832ea46e --- gnu/packages/golang-web.scm | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 9bcd3658c3..7dd725a6ab 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1925,6 +1925,55 @@ receives automatic updates from a server via HTTP connection. The SSE of HTML5[1] by the W3C}.") (license license:expat))) +(define-public go-github-com-gin-gonic-gin + (package + (name "go-github-com-gin-gonic-gin") + (version "1.10.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gin-gonic/gin") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01xjvw2d46b77jnszgbwqbdzh9jx7y3h5ik3q30y9dn9gaq5mhks")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gin-gonic/gin")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-bytedance-sonic + go-github-com-gin-contrib-sse + go-github-com-go-playground-validator-v10 + go-github-com-goccy-go-json + go-github-com-json-iterator-go + go-github-com-mattn-go-isatty + go-github-com-pelletier-go-toml-v2 + go-github-com-ugorji-go-codec + go-golang-org-x-net + go-google-golang-org-protobuf + go-gopkg-in-yaml-v3)) + (home-page "https://github.com/gin-gonic/gin") + (synopsis "HTTP web framework") + (description + "This package provides a Golang web framework wit martini-like API. + +Features: +@itemize +@item zero allocation router +@item middleware support +@item crash-free +@item JSON validation +@item routes grouping +@item error management +@item rendering built-in +@item extendable +@end itemize") + (license license:expat))) + (define-public go-github-com-go-chi-chi-v5 (package (name "go-github-com-go-chi-chi-v5")