From a985e20c47b7abdb01c48d4b3d47f4bb78635d82 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 11 Jan 2025 19:42:23 +0000 Subject: [PATCH] gnu: Add go-github-com-realclientip-realclientip-go. * gnu/packages/golang-web.scm (go-github-com-realclientip-realclientip-go): New variable. Change-Id: I523b5a6435567e02e2f7123a560cb9c414681263 --- gnu/packages/golang-web.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 2b745a7bde1..e9c29c769a1 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6971,6 +6971,30 @@ of the specification.") library.") (license license:bsd-2))) +(define-public go-github-com-realclientip-realclientip-go + (package + (name "go-github-com-realclientip-realclientip-go") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/realclientip/realclientip-go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1mg3nrb4b1q38q9j1diz4pl2nqpa3ay45gi81i6ma3bvss8v7ri3")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/realclientip/realclientip-go")) + (home-page "https://github.com/realclientip/realclientip-go") + (synopsis "Go reference implementation of \"real\" client IP algorithms") + (description + "Package realclientip provides strategies for obtaining the \"real\" +client IP from HTTP requests.") + (license license:bsd-0))) + (define-public go-github-com-rs-cors (package (name "go-github-com-rs-cors")