mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-10 13:19:40 -05:00
gnu: aws-vault: Improve package style.
* gnu/packages/golang.scm (aws-vault): Improve package style. Fix indentation. [arguments]: Apply G-expressions. [native-inputs]: Place after [arguments]. [home-page]: Place above [synopsis]. Change-Id: I752318280483d5e501577e063ab899063eea0112
This commit is contained in:
parent
460340ecfa
commit
57c40eb904
1 changed files with 41 additions and 40 deletions
|
@ -8211,16 +8211,46 @@ (define-public aws-vault
|
||||||
(package
|
(package
|
||||||
(name "aws-vault")
|
(name "aws-vault")
|
||||||
(version "7.2.0")
|
(version "7.2.0")
|
||||||
(source (origin
|
(source
|
||||||
(method git-fetch)
|
(origin
|
||||||
(uri (git-reference
|
(method git-fetch)
|
||||||
(url "https://github.com/99designs/aws-vault")
|
(uri (git-reference
|
||||||
(commit (string-append "v" version))))
|
(url "https://github.com/99designs/aws-vault")
|
||||||
(file-name (git-file-name name version))
|
(commit (string-append "v" version))))
|
||||||
(sha256
|
(file-name (git-file-name name version))
|
||||||
(base32
|
(sha256
|
||||||
"1dqg6d2k8r80ww70afghf823z0pijha1i0a0c0c6918yb322zkj2"))))
|
(base32 "1dqg6d2k8r80ww70afghf823z0pijha1i0a0c0c6918yb322zkj2"))))
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:install-source? #f
|
||||||
|
#:import-path "github.com/99designs/aws-vault"
|
||||||
|
#: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 import-path #:allow-other-keys)
|
||||||
|
(let* ((zsh-site-dir
|
||||||
|
(string-append #$output "/share/zsh/site-functions"))
|
||||||
|
(bash-completion-dir
|
||||||
|
(string-append #$output "/share/bash-completion/completions"))
|
||||||
|
(fish-completion-dir
|
||||||
|
(string-append #$output "/share/fish/completions")))
|
||||||
|
(for-each mkdir-p (list bash-completion-dir
|
||||||
|
fish-completion-dir
|
||||||
|
zsh-site-dir))
|
||||||
|
(with-directory-excursion
|
||||||
|
(string-append "src/" import-path "/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")))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list go-github-com-99designs-keyring
|
(list go-github-com-99designs-keyring
|
||||||
go-github-com-alecthomas-kingpin-v2
|
go-github-com-alecthomas-kingpin-v2
|
||||||
|
@ -8237,36 +8267,8 @@ (define-public aws-vault
|
||||||
go-github-com-skratchdot-open-golang
|
go-github-com-skratchdot-open-golang
|
||||||
go-golang-org-x-term
|
go-golang-org-x-term
|
||||||
go-gopkg-in-ini-v1))
|
go-gopkg-in-ini-v1))
|
||||||
(arguments
|
(home-page "https://github.com/99designs/aws-vault")
|
||||||
`(#:import-path "github.com/99designs/aws-vault"
|
(synopsis "Vault for securely storing and accessing AWS credentials")
|
||||||
#: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
|
(description
|
||||||
"AWS Vault is a tool to securely store and access @acronym{Amazon Web
|
"AWS Vault is a tool to securely store and access @acronym{Amazon Web
|
||||||
Services,AWS} credentials.
|
Services,AWS} credentials.
|
||||||
|
@ -8275,7 +8277,6 @@ (define-public aws-vault
|
||||||
then generates temporary credentials from those to expose to your shell 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
|
applications. It's designed to be complementary to the AWS CLI tools, and is
|
||||||
aware of your profiles and configuration in ~/.aws/config.")
|
aware of your profiles and configuration in ~/.aws/config.")
|
||||||
(home-page "https://github.com/99designs/aws-vault")
|
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public go-github-com-gsterjov-go-libsecret
|
(define-public go-github-com-gsterjov-go-libsecret
|
||||||
|
|
Loading…
Reference in a new issue