terragrunt: Set the version variable properly

This commit is contained in:
Shea Levy 2017-03-15 11:01:09 -04:00
parent d6c3e74425
commit 0c928f4a1d
2 changed files with 8 additions and 0 deletions

View file

@ -17,6 +17,10 @@ buildGoPackage rec {
buildInputs = [ makeWrapper ]; buildInputs = [ makeWrapper ];
preBuild = ''
buildFlagsArray+=("-ldflags" "-X main.VERSION=v${version}")
'';
postInstall = '' postInstall = ''
wrapProgram $bin/bin/terragrunt \ wrapProgram $bin/bin/terragrunt \
--set TERRAGRUNT_TFPATH ${lib.getBin terraform}/bin/terraform --set TERRAGRUNT_TFPATH ${lib.getBin terraform}/bin/terraform

View file

@ -17,6 +17,10 @@ buildGoPackage rec {
buildInputs = [ makeWrapper ]; buildInputs = [ makeWrapper ];
preBuild = ''
buildFlagsArray+=("-ldflags" "-X main.VERSION=v${version}")
'';
postInstall = '' postInstall = ''
wrapProgram $bin/bin/terragrunt \ wrapProgram $bin/bin/terragrunt \
--set TERRAGRUNT_TFPATH ${lib.getBin terraform}/bin/terraform --set TERRAGRUNT_TFPATH ${lib.getBin terraform}/bin/terraform