2020-03-27 07:33:21 +00:00
|
|
|
{ stdenv, fetchFromGitHub, buildGoModule }:
|
2019-06-04 11:34:24 +01:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "terraform-provider-elasticsearch";
|
2019-06-04 11:34:24 +01:00
|
|
|
version = "0.7.0";
|
2019-05-27 16:48:36 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phillbaker";
|
|
|
|
repo = "terraform-provider-elasticsearch";
|
|
|
|
rev = "v${version}";
|
2019-06-04 11:34:24 +01:00
|
|
|
sha256 = "0ci9gcn9ijdbx25wa99iy0b3sl7akqa7b6gi9wnnl1dawpqznj7v";
|
2019-05-27 16:48:36 +01:00
|
|
|
};
|
|
|
|
|
2019-06-04 11:34:24 +01:00
|
|
|
modSha256 = "1xk21xswqwpv34j4ba4fj8lcbvfdd12x7rq1hrdyd21mdhmrhw0p";
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2019-05-27 16:48:36 +01:00
|
|
|
# Terraform allow checking the provider versions, but this breaks
|
|
|
|
# if the versions are not provided via file paths.
|
2019-06-04 11:34:24 +01:00
|
|
|
postInstall = "mv $out/bin/terraform-provider-elasticsearch{,_v${version}}";
|
2019-05-27 16:48:36 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Terraform provider for elasticsearch";
|
|
|
|
homepage = "https://github.com/phillbaker/terraform-provider-elasticsearch";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ basvandijk ];
|
|
|
|
};
|
|
|
|
}
|