Skip to content

Commit

Permalink
terraform-provider-elasticsearch: init at 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
basvandijk committed May 27, 2019
1 parent ad4bd3b commit d19b0b2
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 0 deletions.
Expand Up @@ -24,6 +24,7 @@ let
};
in
{
elasticsearch = callPackage ./elasticsearch {};
gandi = callPackage ./gandi {};
ibm = callPackage ./ibm {};
libvirt = callPackage ./libvirt {};
Expand Down
@@ -0,0 +1,29 @@
{ stdenv, fetchFromGitHub, buildGoPackage }:
buildGoPackage rec {
name = "terraform-provider-elasticsearch-${version}";
version = "0.6.0";

goPackagePath = "github.com/phillbaker/terraform-provider-elasticsearch";

# ./deps.nix was generated using the work-around described in:
# https://github.com/kamilchm/go2nix/issues/19
goDeps = ./deps.nix;

src = fetchFromGitHub {
owner = "phillbaker";
repo = "terraform-provider-elasticsearch";
rev = "v${version}";
sha256 = "04i7jwhm1mg4m8p7y6yg83j76fx0ncallzbza1g1wc5cjjbkvgs2";
};

# Terraform allow checking the provider versions, but this breaks
# if the versions are not provided via file paths.
postBuild = "mv go/bin/terraform-provider-elasticsearch{,_v${version}}";

meta = with stdenv.lib; {
description = "Terraform provider for elasticsearch";
homepage = "https://github.com/phillbaker/terraform-provider-elasticsearch";
license = licenses.mpl20;
maintainers = with maintainers; [ basvandijk ];
};
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d19b0b2

Please sign in to comment.