add vault package

This commit is contained in:
Peter Tillemans 2024-06-07 11:21:23 +02:00
parent 7af25724b2
commit e0c7597b1c

View file

@ -56,9 +56,6 @@
(system* (which "unzip") (system* (which "unzip")
(assoc-ref inputs "source")) (assoc-ref inputs "source"))
#t))))) #t)))))
(inputs
`(("libstdc++" ,(make-libstdc++ gcc))
("zlib" ,zlib)))
(native-inputs (native-inputs
`(("unzip" ,unzip))) `(("unzip" ,unzip)))
(synopsis "A tool to describe and deploy infrastructure as code") (synopsis "A tool to describe and deploy infrastructure as code")
@ -78,4 +75,40 @@
(base32 (base32
"002g0ypkkfqy5nf989jyk3m1l7l0455hsaq11xfhr5lbv4zqh5yi")))))) "002g0ypkkfqy5nf989jyk3m1l7l0455hsaq11xfhr5lbv4zqh5yi"))))))
snam-terraform-1.6
(define-public vault
(package
(name "snam-vault")
(version "1.16.3")
(source (origin
(method url-fetch)
(uri (string-append "https://releases.hashicorp.com/vault/" version "/vault_" version "_linux_amd64.zip"))
(sha256
(base32
"1n3147l5slzmw7svqdwbhzxybzl5597jb64i4hvsrhswqnnx8cya"))))
(build-system binary-build-system)
(supported-systems '("x86_64-linux"))
(arguments '(
#:install-plan
`(("." ("vault") "bin/"))
#:phases
(modify-phases %standard-phases
;; this is required because standard unpack expects
;; the archive to contain a directory with everything inside it,
;; while babashka's release .tar.gz only contains the `bb` binary.
(replace 'unpack
(lambda* (#:key inputs #:allow-other-keys)
(system* (which "unzip")
(assoc-ref inputs "source"))
#t)))))
(native-inputs
`(("unzip" ,unzip)))
(synopsis "A tool to describe and deploy secrets.")
(description
"Vault allows you to store and distribute secrets securely.")
(home-page "https://hashicorp.com/vault")
(license #f)))
vault