From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evqZf-0006u1-CE for guix-patches@gnu.org; Tue, 13 Mar 2018 16:31:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evqZa-0002J2-Es for guix-patches@gnu.org; Tue, 13 Mar 2018 16:31:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:52049) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evqZa-0002Iw-BF for guix-patches@gnu.org; Tue, 13 Mar 2018 16:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1evqZa-0004QR-4u for guix-patches@gnu.org; Tue, 13 Mar 2018 16:31:02 -0400 Subject: [bug#30806] [PATCH 2/2] gnu: Add terraform-provider-libvirt. Resent-Message-ID: From: Christopher Baines Date: Tue, 13 Mar 2018 20:30:08 +0000 Message-Id: <20180313203008.3487-2-mail@cbaines.net> In-Reply-To: <20180313203008.3487-1-mail@cbaines.net> References: <20180313203008.3487-1-mail@cbaines.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30806@debbugs.gnu.org * gnu/packages/terraform.scm (terraform-provider-libvirt): New variable. --- gnu/packages/terraform.scm | 48 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/gnu/packages/terraform.scm b/gnu/packages/terraform.scm index 277d19aed..e81ada45d 100644 --- a/gnu/packages/terraform.scm +++ b/gnu/packages/terraform.scm @@ -21,7 +21,11 @@ #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) - #:use-module (guix build-system go)) + #:use-module (guix build-system go) + #:use-module (gnu packages golang) + #:use-module (gnu packages cdrom) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages virtualization)) (define-public terraform (package @@ -58,3 +62,45 @@ apply changes to the described resources. Terraform uses plugins that provide intergrations to different providers.") (home-page "https://www.terraform.io/") (license license:mpl2.0))) + +(define-public terraform-provider-libvirt + (package + (name "terraform-provider-libvirt") + (version "0.3") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dmacvicar/terraform-provider-libvirt") + (commit (string-append "v" version)))) + (sha256 + (base32 + "004gxy55p5cf39f2zpah0i2zhvs4x6ixnxy8z9v7314604ggpkna")))) + (build-system go-build-system) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("libvirt" ,libvirt) + ("cdrtools" ,cdrtools))) + (arguments + '(#:import-path "github.com/dmacvicar/terraform-provider-libvirt" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-mkisofs + (lambda* (#:key inputs #:allow-other-keys) + (substitute* + "src/github.com/dmacvicar/terraform-provider-libvirt/libvirt/cloudinit_def.go" + (("mkisofs") + (string-append (assoc-ref inputs "cdrtools") + "/bin/mkisofs"))))) + ;; This should be redundant once the vendor directory is removed from + ;; this package + (add-before 'reset-gzip-timestamps 'remove-readonly-gzip-files + (lambda* (#:key outputs #:allow-other-keys) + (for-each delete-file + (find-files + (assoc-ref outputs "out") + ".*\\.gz"))))))) + (synopsis "") + (description "") + (home-page "") + (license ""))) -- 2.16.2