Update ansible package

Needs to be moved out of automatic update-all since it requires
goDeps.
This commit is contained in:
Urban Skudnik 2019-07-25 13:58:42 +02:00
parent 34919c38e3
commit f1b81ff2cd
No known key found for this signature in database
GPG Key ID: 7D99AAABFE96E8AD
5 changed files with 38 additions and 10 deletions

View File

@ -0,0 +1,26 @@
{ stdenv, fetchFromGitHub, buildGoPackage }:
buildGoPackage rec {
name = "terraform-provider-ansible-${version}";
version = "1.0.3";
goPackagePath = "github.com/nbering/terraform-provider-ansible";
goDeps = ./deps.nix;
src = fetchFromGitHub {
owner = "nbering";
repo = "terraform-provider-ansible";
rev = "v${version}";
sha256 = "0dqi9ym0xvnz3h73cmd1vf6k2qwfhxvj1mcakkpmsd4cpxq4l6pr";
};
# Terraform allow checking the provider versions, but this breaks
# if the versions are not provided via file paths.
postBuild = "mv go/bin/terraform-provider-ansible{,_v${version}}";
meta = with stdenv.lib; {
description = "A Terraform provider serving as an interop layer for an Ansible dynamic inventory script.";
homepage = "https://github.com/nbering/terraform-provider-ansible";
license = licenses.mpl20;
maintainers = with maintainers; [ uskudnik ];
};
}

View File

@ -0,0 +1,11 @@
[
{
goPackagePath = "github.com/hashicorp/terraform";
fetch = {
type = "git";
url = "https://github.com/hashicorp/terraform";
rev = "v0.12.5";
sha256 = "0p064rhaanwx4szs8hv6mdqad8d2bgfd94h2la11j58xbsxc7hap";
};
}
]

View File

@ -714,11 +714,4 @@
version = "0.2.0";
sha256 = "0ic5b9djhnb1bs2bz3zdprgy3r55dng09xgc4d9l9fyp85g2amaz";
};
ansible =
{
owner = "nbering";
repo = "terraform-provider-ansible";
version = "0.0.4";
sha256 = "125a8vbpnahaxxrxj3mp0kj6ajssxnfb6l0spgnf118wg3bvlmw5";
};
}

View File

@ -28,4 +28,5 @@ in
gandi = callPackage ./gandi {};
ibm = callPackage ./ibm {};
libvirt = callPackage ./libvirt {};
ansible = callPackage ./ansible {};
} // lib.mapAttrs (n: v: toDrv v) list

View File

@ -20,6 +20,3 @@ tweag/terraform-provider-secret
# include terraform-provider-segment
ajbosco/terraform-provider-segment
# include terraform-provider-ansible
nbering/terraform-provider-ansible