sharlatan pushed a commit to branch go-team
in repository guix.

commit 6708fd1662df55533f91777a1cfb577105495a44
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Jan 11 19:42:23 2025 +0000

    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 2b745a7bde..e9c29c769a 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")

Reply via email to