From eadbf482b74b3c0da9415c7216ab35ceb81e565a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 21 Aug 2024 23:15:04 +0100 Subject: 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(+) (limited to 'gnu/packages') 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") -- cgit v1.2.3