1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/networking/cluster/terragrunt/default.nix

34 lines
944 B
Nix
Raw Normal View History

{ stdenv, lib, buildGoModule, fetchFromGitHub, terraform, makeWrapper }:
2017-01-10 07:27:30 +00:00
buildGoModule rec {
pname = "terragrunt";
2020-08-02 15:26:40 +01:00
version = "0.23.32";
2017-01-10 07:27:30 +00:00
src = fetchFromGitHub {
owner = "gruntwork-io";
repo = pname;
rev = "v${version}";
2020-08-02 15:26:40 +01:00
sha256 = "1pa3k0hjdb5bj0bp4aj3lfcgz98l3wd9kfa12rn9zzbcmp087kih";
2017-01-10 07:27:30 +00:00
};
2020-06-09 04:13:05 +01:00
vendorSha256 = "1xn7c6y32vpanqvf1sfpw6bs73dbjniavjbf00j0vx83bfyklsr4";
2017-01-10 07:27:30 +00:00
2017-02-03 02:55:24 +00:00
buildInputs = [ makeWrapper ];
2017-01-10 07:27:30 +00:00
preBuild = ''
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 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/";
2017-01-10 07:27:30 +00:00
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
}