Add kubernetes

This commit is contained in:
2024-02-11 12:11:40 -05:00
parent 7f62881236
commit 8ef9d6d7ff

View File

@@ -0,0 +1,27 @@
(define-module (adam packages kubernetes)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system copy)
#:use-module ((guix licenses) #:prefix license:))
(define-public kubectl
(package
(name "kubectl")
(version "1.28.6")
(source
(origin
(method url-fetch)
(uri (string-append "https://dl.k8s.io/release/v" version "/bin/linux/amd64/kubectl"))
(sha256 (base32 "1qx7gb6gavc4nj98przr7vaa5hafp4zgblsdccvgs68ic7h1ydf8"))))
(build-system copy-build-system)
(arguments
`(#:phases (modify-phases %standard-phases)
(add-after 'unpack 'chmod
(lambda* (#:key #:allow-other-keys)
(cmod "kubectl" #o755)))
#:substitutable? #f
#:install-plan '(("kubectl" "/bin/"))))
(synopsis "kubectl binary")
(description "kubectl binary")
(home-page "https://github.com/kubernetes/kubernetes")
(license license:asl2.0)))