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
06kellyjac cef39f9089 terragrunt: 0.23.2 -> 0.23.14
Moved to use go modules build
Deleted old deps.nix file used with dep
2020-05-07 11:24:58 -07:00

34 lines
941 B
Nix

{ stdenv, lib, buildGoModule, fetchFromGitHub, terraform, makeWrapper }:
buildGoModule rec {
pname = "terragrunt";
version = "0.23.14";
src = fetchFromGitHub {
owner = "gruntwork-io";
repo = pname;
rev = "v${version}";
sha256 = "1znb9d4n9zv3dq10dw17kb1h04gj8iz6gwx1a741fcf4ygp8zpy1";
};
modSha256 = "0pjqsb6lxk73prc6jxj07iwd1wyy5gqz24kigb308r3n0c2vcnky";
buildInputs = [ makeWrapper ];
preBuild = ''
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 ];
};
}