Skip to content

Commit 63f4921

Browse files
Yaakov Nemoyjoachifm
Yaakov Nemoy
authored andcommittedMay 6, 2017
terragrunt: 0.11.1 -> 0.12.15 (#25472)
1 parent 71ae259 commit 63f4921

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{ stdenv, lib, buildGoPackage, fetchFromGitHub, terraform, makeWrapper }:
2+
3+
buildGoPackage rec {
4+
name = "terragrunt-${version}";
5+
version = "0.11.1";
6+
7+
goPackagePath = "github.com/gruntwork-io/terragrunt";
8+
9+
src = fetchFromGitHub {
10+
rev = "v${version}";
11+
owner = "gruntwork-io";
12+
repo = "terragrunt";
13+
sha256 = "061ix4m64i8bvjpqm6hn83nnkvqrp5y0hh5gzmxiik2nz3by1rx5";
14+
};
15+
16+
goDeps = ./deps.nix;
17+
18+
buildInputs = [ makeWrapper ];
19+
20+
preBuild = ''
21+
buildFlagsArray+=("-ldflags" "-X main.VERSION=v${version}")
22+
'';
23+
24+
postInstall = ''
25+
wrapProgram $bin/bin/terragrunt \
26+
--set TERRAGRUNT_TFPATH ${lib.getBin terraform}/bin/terraform
27+
'';
28+
29+
meta = with stdenv.lib; {
30+
description = "A thin wrapper for Terraform that supports locking for Terraform state and enforces best practices.";
31+
homepage = https://github.com/gruntwork-io/terragrunt/;
32+
license = licenses.mit;
33+
maintainers = with maintainers; [ peterhoeg ];
34+
};
35+
}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
buildGoPackage rec {
44
name = "terragrunt-${version}";
5-
version = "0.11.1";
5+
version = "0.12.15";
66

77
goPackagePath = "github.com/gruntwork-io/terragrunt";
88

99
src = fetchFromGitHub {
1010
rev = "v${version}";
1111
owner = "gruntwork-io";
1212
repo = "terragrunt";
13-
sha256 = "061ix4m64i8bvjpqm6hn83nnkvqrp5y0hh5gzmxiik2nz3by1rx5";
13+
sha256 = "1khmxqzhhkr6km4zfn0q3zm55wgc92hrayvqkf9snzr816c1qzp3";
1414
};
1515

1616
goDeps = ./deps.nix;

‎pkgs/top-level/all-packages.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -18426,7 +18426,9 @@ with pkgs;
1842618426
terraform_0_9 = terraform_0_9_4;
1842718427
terraform = terraform_0_9;
1842818428

18429-
terragrunt = callPackage ../applications/networking/cluster/terragrunt {
18429+
terragrunt = callPackage ../applications/networking/cluster/terragrunt {};
18430+
18431+
terragrunt_0_11_1 = callPackage ../applications/networking/cluster/terragrunt/0.11.1.nix {
1843018432
terraform = terraform_0_8;
1843118433
};
1843218434

0 commit comments

Comments
 (0)
Please sign in to comment.