2021-01-26 16:41:11 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2017-01-10 08:27:30 +01:00
|
|
|
|
2020-05-06 14:05:10 +02:00
|
|
|
buildGoModule rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "terragrunt";
|
2021-06-19 10:37:19 +02:00
|
|
|
version = "0.30.7";
|
2017-01-10 08:27:30 +01:00
|
|
|
|
2020-10-16 17:18:01 +02:00
|
|
|
src = fetchFromGitHub {
|
2020-05-06 14:05:10 +02:00
|
|
|
owner = "gruntwork-io";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-06-19 10:37:19 +02:00
|
|
|
sha256 = "sha256-zcb2bdIvUeHEto2NeY0Zwj7jIB+ipVXpnb7q97IkvmA=";
|
2017-01-10 08:27:30 +01:00
|
|
|
};
|
|
|
|
|
2021-06-15 14:15:59 +02:00
|
|
|
vendorSha256 = "sha256-OgNNq1qRhCufcWemLxh50pzs432RxZpWWcyBB7xeiOs=";
|
2017-01-10 08:27:30 +01:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-06-18 16:12:56 +02:00
|
|
|
ldflags = [ "-s" "-w" "-X main.VERSION=v${version}" ];
|
2017-03-15 16:01:09 +01:00
|
|
|
|
2021-02-18 22:20:05 +01:00
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
runHook preInstallCheck
|
|
|
|
$out/bin/terragrunt --help
|
|
|
|
$out/bin/terragrunt --version | grep "v${version}"
|
|
|
|
runHook postInstallCheck
|
|
|
|
'';
|
|
|
|
|
2020-10-23 10:48:39 +02:00
|
|
|
meta = with lib; {
|
2021-02-01 18:05:54 +01:00
|
|
|
homepage = "https://terragrunt.gruntwork.io";
|
|
|
|
changelog = "https://github.com/gruntwork-io/terragrunt/releases/tag/v${version}";
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "A thin wrapper for Terraform that supports locking for Terraform state and enforces best practices";
|
2017-01-10 08:27:30 +01:00
|
|
|
license = licenses.mit;
|
2021-04-27 10:07:52 +02:00
|
|
|
maintainers = with maintainers; [ jk ];
|
2017-01-10 08:27:30 +01:00
|
|
|
};
|
2020-07-31 05:58:04 +02:00
|
|
|
}
|