diff options
author | Collin J. Doering <collin@rekahsoft.ca> | 2021-12-26 22:46:07 -0500 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-01-01 15:11:51 +0100 |
commit | 92d03362ff7d0565353e396612058cc6c104524e (patch) | |
tree | 98181154e6559e3d213bad701eaaf6651bd6e8ae | |
parent | a840dbba07a676f698646a8ff03ca4c0ef30f7f1 (diff) | |
download | guix-92d03362ff7d0565353e396612058cc6c104524e.tar guix-92d03362ff7d0565353e396612058cc6c104524e.tar.gz |
gnu: Add aws-vault
* gnu/packages/golang.scm (aws-vault): New variable.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r-- | gnu/packages/golang.scm | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e355332b2d..cb6fd9ed76 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -8899,6 +8899,78 @@ encrypting JSON Web Tokens (JWT). It relies only on the standard library.") (home-page "https://github.com/dvsekhvalnov/jose2go") (license license:expat))) +(define-public aws-vault + (package + (name "aws-vault") + (version "6.3.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/99designs/aws-vault") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "02zw0kl77yr56mw1fbvr51c4mz2265c9al2nzvnqqzdx5aha7nf8")))) + (build-system go-build-system) + (native-inputs + (list go-github-com-99designs-go-keyring + go-github-com-androiddnsfix + go-github-com-percent + go-github-com-jmespath-go-jmespath + go-github-com-aws-aws-sdk-go + go-github-com-dvsekhvalnov-jose2go + go-github-com-godbus-dbus + go-github-com-go-libsecret + go-github-com-mitchellh-go-homedir + go-golang-org-x-crypto + go-golang-org-x-sys + go-gopkg-in-ini + go-github-com-skratchdot-open-golang + go-github-com-kingpin + go-github-com-alecthomas-template + go-github-com-alecthomas-units)) + (arguments + `(#:import-path "github.com/99designs/aws-vault" + #:install-source? #f + #:phases + (modify-phases %standard-phases + (add-before 'build 'patch-version + (lambda _ + (substitute* "src/github.com/99designs/aws-vault/main.go" + (("var Version = \"dev\"") + (string-append "var Version = \"v" ,version "\""))))) + (add-after 'build 'contrib + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (zsh-site-dir (string-append out "/share/zsh/site-functions")) + (bash-completion-dir + (string-append out "/share/bash-completion/completions")) + (fish-completion-dir + (string-append out "/share/fish/completions"))) + (for-each mkdir-p + `(,zsh-site-dir ,bash-completion-dir ,fish-completion-dir)) + (with-directory-excursion + "src/github.com/99designs/aws-vault/contrib/completions" + (copy-file "zsh/aws-vault.zsh" + (string-append zsh-site-dir "/_aws-vault")) + (copy-file "bash/aws-vault.bash" + (string-append bash-completion-dir "/aws-vault")) + (copy-file "fish/aws-vault.fish" + (string-append fish-completion-dir "/aws-vault.fish"))))))))) + (synopsis + "Vault for securely storing and accessing AWS credentials") + (description + "AWS Vault is a tool to securely store and access @acronym{Amazon Web +Services,AWS} credentials. + +AWS Vault stores IAM credentials in your operating system's secure keystore and +then generates temporary credentials from those to expose to your shell and +applications. It's designed to be complementary to the AWS CLI tools, and is +aware of your profiles and configuration in ~/.aws/config.") + (home-page "https://github.com/99designs/aws-vault") + (license license:expat))) + (define-public go-github-com-go-libsecret (let ((commit "a6f4afe4910cad8688db3e0e9b9ac92ad22d54e1") (revision "0")) |