guix-commits
[Top][All Lists]
Advanced

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

18/50: gnu: Add go-github-com-aws-aws-lambda-go.


From: guix-commits
Subject: 18/50: gnu: Add go-github-com-aws-aws-lambda-go.
Date: Sun, 25 Aug 2024 19:20:26 -0400 (EDT)

sharlatan pushed a commit to branch master
in repository guix.

commit eadbf482b74b3c0da9415c7216ab35ceb81e565a
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Wed Aug 21 23:15:04 2024 +0100

    gnu: Add go-github-com-aws-aws-lambda-go.
    
    * gnu/packages/golang-web.scm (go-github-com-aws-aws-lambda-go): New 
variable.
    
    Change-Id: I5abb8225f0c36232e8fbd6c37763ae30f842eab2
---
 gnu/packages/golang-web.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 8f00b0e351..fbdef8a35f 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -270,6 +270,41 @@ the parse trees produced by the html package.")
 connections from a single physical connection.")
     (license license:expat)))
 
+(define-public go-github-com-aws-aws-lambda-go
+  (package
+    (name "go-github-com-aws-aws-lambda-go")
+    (version "1.47.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/aws/aws-lambda-go";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0xki0n3va9nr6dmlgrb8zarkccx5jba6ig6g8zxcznw3rlllf1zv"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/aws/aws-lambda-go"
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; XXX: Workaround for go-build-system's lack of Go modules support.
+          (delete 'build)
+          (replace 'check
+            (lambda* (#:key tests? import-path #:allow-other-keys)
+              (when tests?
+                (with-directory-excursion (string-append "src/" import-path)
+                  (invoke "go" "test" "-v" "./..."))))))))
+    (native-inputs
+     (list go-github-com-stretchr-testify))
+    (home-page "https://github.com/aws/aws-lambda-go";)
+    (synopsis "AWS Lambda for Go")
+    (description
+     "Libraries, samples, and tools to help Go developers develop AWS Lambda
+functions.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-aws-aws-sdk-go
   (package
     (name "go-github-com-aws-aws-sdk-go")



reply via email to

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