guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

197/401: gnu: go-github-com-emicklei-go-restful-v3: Fix build.


From: guix-commits
Subject: 197/401: gnu: go-github-com-emicklei-go-restful-v3: Fix build.
Date: Thu, 26 Dec 2024 19:30:56 -0500 (EST)

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

commit 39a01da4bf76afb7ed85bd507772451302306cec
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sun Dec 15 20:45:55 2024 +0000

    gnu: go-github-com-emicklei-go-restful-v3: Fix build.
    
    * gnu/packages/golang-web.scm (go-github-com-emicklei-go-restful-v3)
    [arguments]<phases>: Add 'remove-examples.
    [description]: Start from a new line.
    
    Change-Id: I9e1ccd5a07b4f0bde2bdd40764094783460cf235
---
 gnu/packages/golang-web.scm | 42 ++++++++++++++++++++++++++++++++++++++----
 1 file changed, 38 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index e28a1a79d8..be086eae10 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -1579,12 +1579,20 @@ RFC 5321.")
         (base32 "0m1y5a6xr6hmdj77afrvyh2llkbhn1166lcrgis654shl8zs9qhz"))))
     (build-system go-build-system)
     (arguments
-     '(#:import-path "github.com/emicklei/go-restful"))
+     (list
+      #:import-path "github.com/emicklei/go-restful"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'remove-examples
+            (lambda* (#:key import-path #:allow-other-keys)
+              (with-directory-excursion (string-append "src/" import-path)
+                (delete-file-recursively "examples")))))))
     (home-page "https://github.com/emicklei/go-restful";)
     (synopsis "Build REST-style web services using Go")
-    (description "This package provides @code{go-restful}, which helps
-developers to use @code{http} methods explicitly and in a way that's
-consistent with the HTTP protocol definition.")
+    (description
+     "This package provides @code{go-restful}, which helps developers to use
+@code{http} methods explicitly and in a way that's consistent with the HTTP
+protocol definition.")
     (license license:expat)))
 
 (define-public go-github-com-evanphx-json-patch
@@ -4264,6 +4272,32 @@ multistream-select protocol.  The protocol is defined at
 which produce colorized output using github.com/fatih/color.")
     (license license:expat)))
 
+(define-public go-github-com-nytimes-gziphandler
+  (package
+    (name "go-github-com-nytimes-gziphandler")
+    (version "1.1.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/nytimes/gziphandler";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0rhrjlw220hnymzfccm0yir3pc9dpj7h3gwzhzq2cbsb3hhsqvyy"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/NYTimes/gziphandler"))
+    (native-inputs
+     (list go-github-com-stretchr-testify))
+    (home-page "https://github.com/NYTimes/gziphandler";)
+    (synopsis "Middleware to gzip HTTP responses")
+    (description
+     "This is a tiny Go package which wraps HTTP handlers to transparently
+gzip the response body, for clients which support it.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-opentracing-contrib-go-stdlib
   (package
     (name "go-github-com-opentracing-contrib-go-stdlib")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]