2017-01-10 08:27:30 +01:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub, terraform, makeWrapper }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "terragrunt-${version}";
|
2017-02-23 01:07:47 +01:00
|
|
|
version = "0.10.3";
|
2017-01-10 08:27:30 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/gruntwork-io/terragrunt";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-01-14 06:58:16 +01:00
|
|
|
rev = "v${version}";
|
2017-01-10 08:27:30 +01:00
|
|
|
owner = "gruntwork-io";
|
|
|
|
repo = "terragrunt";
|
2017-02-23 01:07:47 +01:00
|
|
|
sha256 = "1vyyal4m8qwmlsvd2hriwvgly17iava0siyx7gdhy6dcs8ivc4ng";
|
2017-01-10 08:27:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
2017-02-03 03:55:24 +01:00
|
|
|
buildInputs = [ makeWrapper ];
|
2017-01-10 08:27:30 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $bin/bin/terragrunt \
|
2017-01-15 12:11:56 +01:00
|
|
|
--set TERRAGRUNT_TFPATH ${lib.getBin terraform}/bin/terraform
|
2017-01-10 08:27:30 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A thin wrapper for Terraform that supports locking for Terraform state and enforces best practices.";
|
|
|
|
homepage = https://github.com/gruntwork-io/terragrunt/;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|