Merge pull request #37852 from Mic92/terraform-libvirt

terraform-provider-libvirt: init at 0.3
This commit is contained in:
Jörg Thalheim 2018-03-28 01:33:41 +01:00 committed by GitHub
commit 15c744a06d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ stdenv, buildGoPackage, fetchFromGitHub, libvirt, pkgconfig, makeWrapper, cdrtools }:
# USAGE:
# install the following package globally or in nix-shell:
#
# (terraform.withPlugins (old: [terraform-provider-libvirt]))
#
# configuration.nix:
#
# virtualisation.libvirtd.enable = true;
#
# terraform-provider-libvirt does not manage pools at the moment:
#
# $ virsh --connect "qemu:///system" pool-define-as default dir - - - - /var/lib/libvirt/images
# $ virsh --connect "qemu:///system" pool-start default
#
# pick an example from (i.e ubuntu):
# https://github.com/dmacvicar/terraform-provider-libvirt/tree/master/examples
buildGoPackage rec {
name = "terraform-provider-libvirt-${version}";
version = "0.3";
goPackagePath = "github.com/dmacvicar/terraform-provider-libvirt";
src = fetchFromGitHub {
owner = "dmacvicar";
repo = "terraform-provider-libvirt";
rev = "v${version}";
sha256 = "004gxy55p5cf39f2zpah0i2zhvs4x6ixnxy8z9v7314604ggpkna";
};
buildInputs = [ libvirt pkgconfig makeWrapper ];
goDeps = ./deps.nix;
propagatedBuildInputs = [ cdrtools ];
meta = with stdenv.lib; {
homepage = https://github.com/dmacvicar/terraform-provider-libvirt;
description = "Terraform provider for libvirt";
platforms = platforms.linux;
license = licenses.asl20;
maintainers = with maintainers; [ mic92 ];
};
}

View File

@ -0,0 +1,12 @@
# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
[
{
goPackagePath = "github.com/aws/aws-sdk-go";
fetch = {
type = "git";
url = "https://github.com/aws/aws-sdk-go";
rev = "c861d27d0304a79f727e9a8a4e2ac1e74602fdc0";
sha256 = "023cyg551dvm2l50dx1qsikkj77lk2dhiya7by8in7h65av6hjgl";
};
}
]

View File

@ -20754,6 +20754,8 @@ with pkgs;
terraform-landscape = callPackage ../applications/networking/cluster/terraform-landscape {}; terraform-landscape = callPackage ../applications/networking/cluster/terraform-landscape {};
terraform-provider-libvirt = callPackage ../applications/networking/cluster/terraform-provider-libvirt {};
terragrunt = callPackage ../applications/networking/cluster/terragrunt {}; terragrunt = callPackage ../applications/networking/cluster/terragrunt {};
terragrunt_0_11_1 = callPackage ../applications/networking/cluster/terragrunt/0.11.1.nix { terragrunt_0_11_1 = callPackage ../applications/networking/cluster/terragrunt/0.11.1.nix {