My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/applications/networking/cluster/terragrunt/default.nix

34 lines
943 B

{ stdenv, lib, buildGoModule, fetchFromGitHub, terraform, makeWrapper }:
buildGoModule rec {
pname = "terragrunt";
version = "0.25.4";
src = fetchFromGitHub {
owner = "gruntwork-io";
repo = pname;
rev = "v${version}";
sha256 = "1c8rfx7sks8j74f3jjsl5azkhi7jvcfp8lmd9z553nal4fy8ksb6";
};
vendorSha256 = "0f466qn5vp74mwx9s4rcbw1x793w8hr5dcf2c12sgshya1bxs4nl";
doCheck = false;
buildInputs = [ makeWrapper ];
buildFlagsArray = [ "-ldflags=" "-X main.VERSION=v${version}" ];
postInstall = ''
wrapProgram $out/bin/terragrunt \
--set TERRAGRUNT_TFPATH ${lib.getBin terraform.full}/bin/terraform
'';
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 ];
};
}