2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2024-07-01 15:47:52 +00:00
|
|
|
, go-mockery
|
2023-01-11 07:51:40 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "terragrunt";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.63.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
src = fetchFromGitHub {
|
2020-05-15 21:57:56 +00:00
|
|
|
owner = "gruntwork-io";
|
|
|
|
repo = pname;
|
2023-01-11 07:51:40 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-Y6bDXohGeQ5H4Cq50dwA503pOQA8+ab9po4slL3BRDg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
nativeBuildInputs = [ go-mockery ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
make generate-mocks
|
|
|
|
'';
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
vendorHash = "sha256-l0RFHOQIHLSCzSKq09ibtXEMph/Lhv9ie6B+jpLTxbY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2023-10-09 19:29:22 +00:00
|
|
|
"-X github.com/gruntwork-io/go-commons/version.Version=v${version}"
|
2023-01-11 07:51:40 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-24 18:30:23 +00:00
|
|
|
doInstallCheck = true;
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2021-02-24 18:30:23 +00:00
|
|
|
installCheckPhase = ''
|
|
|
|
runHook preInstallCheck
|
|
|
|
$out/bin/terragrunt --help
|
|
|
|
$out/bin/terragrunt --version | grep "v${version}"
|
|
|
|
runHook postInstallCheck
|
|
|
|
'';
|
|
|
|
|
2020-10-27 00:29:36 +00:00
|
|
|
meta = with lib; {
|
2021-02-05 17:12:51 +00:00
|
|
|
homepage = "https://terragrunt.gruntwork.io";
|
|
|
|
changelog = "https://github.com/gruntwork-io/terragrunt/releases/tag/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Thin wrapper for Terraform that supports locking for Terraform state and enforces best practices";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "terragrunt";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ jk qjoly kashw2 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|