Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
terraform-provider-elasticsearch: init at 0.6.0
- Loading branch information
1 parent
ad4bd3b
commit d19b0b2
Showing
3 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
pkgs/applications/networking/cluster/terraform-providers/elasticsearch/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
75 changes: 75 additions & 0 deletions
75
pkgs/applications/networking/cluster/terraform-providers/elasticsearch/deps.nix
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.