mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
terraform-provider-libvirt: init at 0.3
This commit is contained in:
parent
458ff5a7a0
commit
ebcf2d349a
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
12
pkgs/applications/networking/cluster/terraform-provider-libvirt/deps.nix
generated
Normal file
12
pkgs/applications/networking/cluster/terraform-provider-libvirt/deps.nix
generated
Normal 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";
|
||||
};
|
||||
}
|
||||
]
|
|
@ -20744,6 +20744,8 @@ with pkgs;
|
|||
|
||||
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_0_11_1 = callPackage ../applications/networking/cluster/terragrunt/0.11.1.nix {
|
||||
|
|
Loading…
Reference in a new issue