2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoPackage }:
|
2019-07-25 12:58:42 +01:00
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "terraform-provider-ansible";
|
2019-07-25 12:58:42 +01:00
|
|
|
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}}";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-07-25 12:58:42 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|