nixpkgs/pkgs/applications/networking/cluster/terragrunt/default.nix

34 lines
930 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, makeWrapper, terraform }:
2017-01-10 07:27:30 +00:00
buildGoModule rec {
pname = "terragrunt";
2020-10-23 09:50:15 +01:00
version = "0.25.5";
2017-01-10 07:27:30 +00:00
src = fetchFromGitHub {
owner = "gruntwork-io";
repo = pname;
rev = "v${version}";
2020-10-23 09:50:15 +01:00
sha256 = "19rsnhws4cvssxjmm22j746jck0wzrhwi24hnlwxkdaaw92yd36l";
2017-01-10 07:27:30 +00:00
};
2020-10-23 09:50:15 +01:00
vendorSha256 = "0l85jx02dj9qvxs8l0ln5fln8vssi0fisblm5i1scz9x4a1jqg9n";
2017-01-10 07:27:30 +00:00
doCheck = false;
2017-02-03 02:55:24 +00:00
buildInputs = [ makeWrapper ];
2017-01-10 07:27:30 +00:00
buildFlagsArray = [ "-ldflags=" "-X main.VERSION=v${version}" ];
2017-01-10 07:27:30 +00:00
postInstall = ''
wrapProgram $out/bin/terragrunt \
--set TERRAGRUNT_TFPATH ${lib.getBin terraform.full}/bin/terraform
2017-01-10 07:27:30 +00:00
'';
meta = with lib; {
description = "A thin wrapper for Terraform that supports locking for Terraform state and enforces best practices";
homepage = "https://github.com/gruntwork-io/terragrunt/";
2017-01-10 07:27:30 +00:00
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg jk ];
2017-01-10 07:27:30 +00:00
};
}