Guest User

Untitled

a guest
May 7th, 2024
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. (define-module (packages aws)
  2. #:use-module (guix gexp)
  3. #:use-module (guix packages)
  4. #:use-module (gnu packages golang)
  5. #:use-module (gnu packages golang-build)
  6. #:use-module (guix build-system gnu)
  7. #:use-module (guix download)
  8. #:use-module (guix git-download)
  9. #:use-module ((guix licenses) :prefix license:))
  10.  
  11. (define-public aws-session-manager-plugin
  12. (package
  13. (name "aws-session-manager-plugin")
  14. (version "1.2.553.0")
  15. (source
  16. (origin
  17. (method git-fetch)
  18. (uri (git-reference
  19. (url "https://github.com/aws/session-manager-plugin")
  20. (commit "1.2.553.0")))
  21. (file-name (git-file-name name version))
  22. (sha256
  23. (base32 "0x06lcgf1cdm8c8npc2mn807si014k8x5d1xxwdpmj6a7n28f84g"))))
  24. (build-system gnu-build-system)
  25. (inputs
  26. (list go))
  27. (arguments
  28. (list
  29. #:phases #~(modify-phases %standard-phases
  30. (delete 'configure)
  31. (delete 'check)
  32. (add-before 'build 'fix-home-directory
  33. (lambda _
  34. (setenv "HOME" "/tmp")))
  35. (replace 'build
  36. (lambda* (#:key inputs #:allow-other-keys)
  37. (substitute* "makefile"
  38. (("^build-linux-amd64: checkstyle")
  39. "build-linux-amd64:"))
  40. (invoke "make" "pre-release")
  41. (invoke "make" "build-linux-amd64"))))))
  42. (home-page "https://github.com/aws/session-manager-plugin")
  43. (synopsis "Session Manager Plugin")
  44. (description
  45. "This plugin helps you to use the AWS Command Line Interface (AWS CLI) to start
  46. and end sessions to your managed instances. Session Manager is a capability of
  47. AWS Systems Manager.")
  48. (license license:asl2.0)))
Advertisement
Add Comment
Please, Sign In to add comment