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

commit 64f8e604045b88dbfb44d91969cb351237f77ecc
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Dec 28 20:14:42 2024 +0000

    gnu: Add go-gqlclient.
    
    * gnu/packages/golang-web.scm (go-gqlclient): New variable.
    
    Change-Id: I8079989035246fc22f845ceebb87999e62f65cac
---
 gnu/packages/golang-web.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index f1c8707847..89827d1433 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -8001,6 +8001,40 @@ facilitate dealing with JOSE messages when testing or 
debugging.")
      "This package provides a command line tool to generate gojay's marshaling
 and unmarshaling interface implementation for custom struct type(s).")))
 
+(define-public go-gqlclient
+  (package
+    (inherit go-git-sr-ht-emersion-gqlclient)
+    (name "go-gqlclient")
+    (arguments
+     (substitute-keyword-arguments
+         (package-arguments go-git-sr-ht-emersion-gqlclient)
+       ((#:tests? _ #t) #f)
+       ((#:install-source? _ #t) #f)
+       ((#:phases _ '%standard-phases)
+        #~(modify-phases %standard-phases
+            (replace 'build
+              (lambda arguments
+                (for-each
+                 (lambda (cmd)
+                   (apply (assoc-ref %standard-phases 'build)
+                          `(,@arguments #:import-path ,cmd)))
+                 (list "git.sr.ht/~emersion/gqlclient/cmd/gqlclient"
+                       "git.sr.ht/~emersion/gqlclient/cmd/gqlclientgen"
+                       "git.sr.ht/~emersion/gqlclient/cmd/gqlintrospect"))))
+            (replace 'install
+              (lambda arguments
+                (for-each
+                 (lambda (cmd)
+                   (apply (assoc-ref %standard-phases 'install)
+                          `(,@arguments #:import-path ,cmd)))
+                 (list "git.sr.ht/~emersion/gqlclient/cmd/gqlclient"
+                       "git.sr.ht/~emersion/gqlclient/cmd/gqlclientgen"
+                       
"git.sr.ht/~emersion/gqlclient/cmd/gqlintrospect"))))))))
+    (description
+     "This package provides command line tools: @code{gqlclient},
+@code{gqlclientgen}, and @code{gqlintrospect}.  For the Golang libriray, see
+go-git-sr-ht-emersion-gqlclient package.")))
+
 (define-public go-html2text
   (package
     (inherit go-github-com-jaytaylor-html2text)

Reply via email to