From 53fbd7fdadbf168f696f3f2e25c7883369ee971b Mon Sep 17 00:00:00 2001 From: Rodion Goritskov Date: Sat, 30 Mar 2024 14:57:16 +0400 Subject: gnu: Add terraform, helmfile, terragrunt. * rodion/packages/k8s.scm (terraform): New variables --- rodion/packages/k8s.scm | 64 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 rodion/packages/k8s.scm diff --git a/rodion/packages/k8s.scm b/rodion/packages/k8s.scm new file mode 100644 index 0000000..34433e9 --- /dev/null +++ b/rodion/packages/k8s.scm @@ -0,0 +1,64 @@ +(define-module (rodion packages k8s) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (nonguix licenses) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (gnu packages compression) + #:use-module (guix build-system copy) + #:use-module (gnu packages fonts)) + +(define-public terraform + (package + (name "terraform") + (version "1.7.5") + (source (origin + (method url-fetch) + (uri (string-append "https://releases.hashicorp.com/terraform/1.7.5/terraform_" version "_linux_amd64.zip")) + (sha256 + (base32 "19gpjjcmi2203365bzzk845zp72955rfvw6hgzv07415x2smdw1z")))) + (build-system copy-build-system) + (arguments + `(#:install-plan '(("terraform" "bin/")))) + (synopsis "Terraform") + (description "Terraform") + (inputs (list unzip)) + (home-page "https://terraform.io") + (license (nonfree "https://github.com/hashicorp/terraform/blob/main/LICENSE" "Business Source License")))) + +(define-public helmfile + (package + (name "helmfile") + (version "0.163.0") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/helmfile/helmfile/releases/download/v" version "/helmfile_" version "_linux_amd64.tar.gz")) + (sha256 + (base32 "0fmnw6mj47vnn9g3xpjq6y9lri8pql4y65g0fmkkl0fy16sh1gyd")))) + (build-system copy-build-system) + (arguments + `(#:install-plan '(("helmfile" "bin/")))) + (synopsis "Helmfile") + (description "Helmfile") + (home-page "https://github.com/helmfile/helmfile") + (license license:expat))) + +(define-public terragrunt + (package + (name "terragrunt") + (version "0.55.19") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/gruntwork-io/terragrunt/releases/download/v" version "/terragrunt_linux_amd64")) + (sha256 + (base32 "1dza7s3dx1360rdzak7j5can670aacj60rlggkflgnqx1khavwbb")))) + (build-system copy-build-system) + (arguments + `(#:install-plan '(("terragrunt_linux_amd64" "bin/terragrunt")) + #:phases (modify-phases %standard-phases + (add-after 'install 'make-executable + (lambda* (#:key outputs #:allow-other-keys) + (chmod (string-append (assoc-ref %outputs "out") "/bin/terragrunt") #o555)))))) + (synopsis "Terragrunt") + (description "Terragrunt") + (home-page "https://github.com/gruntwork-io/terragrunt") + (license license:expat))) -- cgit v1.2.3