From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 7Fn6Ev+Kt1/sUwAA0tVLHw (envelope-from ) for ; Fri, 20 Nov 2020 09:23:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8FlSDv+Kt19wcAAAB5/wlQ (envelope-from ) for ; Fri, 20 Nov 2020 09:23:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 72EC0940430 for ; Fri, 20 Nov 2020 09:23:10 +0000 (UTC) Received: from localhost ([::1]:58820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kg2dI-0003lT-Kx for larch@yhetil.org; Fri, 20 Nov 2020 04:23:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kg2dC-0003l8-6e for guix-patches@gnu.org; Fri, 20 Nov 2020 04:23:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58745) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kg2dB-0004Bx-Ti for guix-patches@gnu.org; Fri, 20 Nov 2020 04:23:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kg2dB-0003Z6-Up for guix-patches@gnu.org; Fri, 20 Nov 2020 04:23:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44721] [PATCH] gnu: Add terraform. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 20 Nov 2020 09:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44721 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: EuAndreh Cc: 44721@debbugs.gnu.org Received: via spool by 44721-submit@debbugs.gnu.org id=B44721.160586412313626 (code B ref 44721); Fri, 20 Nov 2020 09:23:01 +0000 Received: (at 44721) by debbugs.gnu.org; 20 Nov 2020 09:22:03 +0000 Received: from localhost ([127.0.0.1]:42058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kg2cA-0003XM-Rl for submit@debbugs.gnu.org; Fri, 20 Nov 2020 04:22:03 -0500 Received: from mira.cbaines.net ([212.71.252.8]:35096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kg2c9-0003XE-L4 for 44721@debbugs.gnu.org; Fri, 20 Nov 2020 04:21:58 -0500 Received: from localhost (188.30.135.14.threembb.co.uk [188.30.135.14]) by mira.cbaines.net (Postfix) with ESMTPSA id 4100427BBF5; Fri, 20 Nov 2020 09:21:56 +0000 (GMT) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id e6f7706d; Fri, 20 Nov 2020 09:21:53 +0000 (UTC) References: <20201118133110.2380-1-eu@euandre.org> User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Baines In-reply-to: <20201118133110.2380-1-eu@euandre.org> Date: Fri, 20 Nov 2020 09:21:50 +0000 Message-ID: <874klkl6xd.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -3.11 X-TUID: PuKe9HKcaYbe --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable EuAndreh via Guix-patches via writes: > * gnu/packages/terraform.scm (terraform): New variable. > --- > gnu/packages/terraform.scm | 25 +++++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > > diff --git a/gnu/packages/terraform.scm b/gnu/packages/terraform.scm > index b9313bbd4a..233859629c 100644 > --- a/gnu/packages/terraform.scm > +++ b/gnu/packages/terraform.scm > @@ -1,6 +1,7 @@ > ;;; GNU Guix --- Functional package management for GNU > ;;; Copyright =C2=A9 2018 Christopher Baines > ;;; Copyright =C2=A9 2018, 2019 Tobias Geerinckx-Rice > +;;; Copyright =C2=A9 2020 EuAndreh > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -47,3 +48,27 @@ the inputs and outputs for modules of the Terraform in= frastructure management > tool. These can be shown, or written to a file in JSON or Markdown form= ats.") > (home-page "https://github.com/segmentio/terraform-docs") > (license license:expat))) > + > +(define-public terraform > + (package > + (name "terraform") > + (version "0.13.5") > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/hashicorp/terraform") > + (commit (string-append "v" version)))) > + (sha256 > + (base32 > + "0q8x6fhhkh4spddbqsxbsc2fp0r5p5010awgkb628s9vz111ws3r"))= )) > + (build-system go-build-system) > + (arguments > + '(#:import-path "github.com/hashicorp/terraform")) > + (synopsis "Tool for building, changing, and versioning infrastructur= e") > + (description > + "Terraform enables you to safely and predictably create, change, and > +improve infrastructure. It is an open source tool that codifies APIs in= to > +declarative configuration files that can be shared amongst team members, > +treated as code, edited, reviewed, and versioned.") > + (home-page "https://www.terraform.io/") > + (license license:mpl2.0))) Hi, Thanks for the patch. I've also written a package definition like this, which works, but isn't yet suitable for inclusion in Guix, because it misrepresents the dependencies/inputs. Terraform has a number of dependencies, but this package does not. Properly packaging it for Guix will require packaging those dependencies, then making a package definition which actually uses those dependencies. I'm hopeful that the recent progress with importers for Go packages will help with this, but I haven't checked myself, maybe you can take a look? Thanks, Chris (there's also some Terraform related discussion here https://issues.guix.info/30806 ) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl+3iq5fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XcT6hAAnu/6yBWTLTaHFSKP92gqYX+JTKQDGl+1 TUOUUmFxlpWWgCkTMiv6Ix1ZuVQrEmyOAagN/5YJ5/FuNU5VBI59pKUCmtNiTOKy /lF7WVqXzO6UgWm/wou6yNVxPzVMSATKMjlf4JlCbII2qZcNRb1RYvDbQTwwUZFy N2U6icernfQt4Vl+rizx/sjuObtSNzpM6xkSYaSDVn0uQrsF8MipWqPPNi+SX+1a 4Sff3fDppfTw4IwZoG8xqb5s6g8hg0nC9hjGY4DEshTyKArQIR8lk+Aq+kXx5MAv hEZfPG1iqWBb3HTqaOYSIpPNrYSRMg4OYZV3Eauj/5Udexpma0xuBGqmJDvMCloi VAlMXe+3ROiFi2RXPxrc2BcrvAwQBWpHMu8hoJlKIIHhDxoisZBoiPyeOOFwFp+S kalhQt77//zbkgX96rZSuEcpO7EtQQBYFM0TeEzjYYhPO8b1X3DtiRGHGjvojT8y CY6d5u3LxE/qf+jgqUBH4lsndS4ZJOWhSppNLWzI0Kx6TAvXAduCL4Gw17B93okI dN5oWuH66VuItWpno+btjNOMwB2hU/LMSv7Ax7w2HENMNUqZ61ft4swIUR9byKRa B1JyA1ZtLLh7Idw7XKXMlNU6i7TlxfxGZ/jEDFi80v+CzKBJJHUFwieUmiOHKpBd hjdwtLhTFJI= =CeZt -----END PGP SIGNATURE----- --=-=-=--