From 007670f067e01f9e0f21fda81a645a924ac02d7e Mon Sep 17 00:00:00 2001 From: Peter Tillemans Date: Tue, 4 Jun 2024 14:00:09 +0200 Subject: [PATCH] add support for terraform 1.6 --- packages/terraform.scm | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/packages/terraform.scm b/packages/terraform.scm index c0f1a5d..da229f5 100644 --- a/packages/terraform.scm +++ b/packages/terraform.scm @@ -44,4 +44,40 @@ (home-page "https://hashicorp.com/terraform") (license #f))) -snam-terraform +(define-public snam-terraform-1.6 + (package + (name "snam-terraform-1.6") + (version "1.6.6") + (source (origin + (method url-fetch) + (uri (string-append "https://releases.hashicorp.com/terraform/" version "/terraform_" version "_linux_amd64.zip")) + (sha256 + (base32 + "002g0ypkkfqy5nf989jyk3m1l7l0455hsaq11xfhr5lbv4zqh5yi")))) + (build-system binary-build-system) + (supported-systems '("x86_64-linux")) + (arguments '( + #:install-plan + `(("." ("terraform") "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))))) + (inputs + `(("libstdc++" ,(make-libstdc++ gcc)) + ("zlib" ,zlib))) + (native-inputs + `(("unzip" ,unzip))) + (synopsis "A tool to describe and deploy infrastructure as code") + (description + "Terraform allows you to describe your complete infrastructure in the form of code. Even if your servers come from different providers such as AWS or Azure, Terraform helps you build and manage these resources in parallel across providers.") + (home-page "https://hashicorp.com/terraform") + (license #f))) + +snam-terraform-1.6