diff options
author | Yaakov Nemoy <loupgaroublond@gmail.com> | 2017-05-06 11:35:04 -0700 |
---|---|---|
committer | Joachim F <joachifm@users.noreply.github.com> | 2017-05-06 19:35:04 +0100 |
commit | 63f49211371c536c9e999bc78ce3b1a71933b6d0 (patch) | |
tree | 4773c9f2a9a1123769aefadaac0e32fd3766b8e4 /pkgs | |
parent | 71ae259627a1650f70c0bea0cab3a90f9c6856bc (diff) |
terragrunt: 0.11.1 -> 0.12.15 (#25472)
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/networking/cluster/terragrunt/0.11.1.nix | 35 | ||||
-rw-r--r-- | pkgs/applications/networking/cluster/terragrunt/default.nix | 4 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
3 files changed, 40 insertions, 3 deletions
diff --git a/pkgs/applications/networking/cluster/terragrunt/0.11.1.nix b/pkgs/applications/networking/cluster/terragrunt/0.11.1.nix new file mode 100644 index 0000000000000..7ed2cef0e3ba2 --- /dev/null +++ b/pkgs/applications/networking/cluster/terragrunt/0.11.1.nix @@ -0,0 +1,35 @@ +{ stdenv, lib, buildGoPackage, fetchFromGitHub, terraform, makeWrapper }: + +buildGoPackage rec { + name = "terragrunt-${version}"; + version = "0.11.1"; + + goPackagePath = "github.com/gruntwork-io/terragrunt"; + + src = fetchFromGitHub { + rev = "v${version}"; + owner = "gruntwork-io"; + repo = "terragrunt"; + sha256 = "061ix4m64i8bvjpqm6hn83nnkvqrp5y0hh5gzmxiik2nz3by1rx5"; + }; + + goDeps = ./deps.nix; + + buildInputs = [ makeWrapper ]; + + preBuild = '' + buildFlagsArray+=("-ldflags" "-X main.VERSION=v${version}") + ''; + + postInstall = '' + wrapProgram $bin/bin/terragrunt \ + --set TERRAGRUNT_TFPATH ${lib.getBin terraform}/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 ]; + }; +} diff --git a/pkgs/applications/networking/cluster/terragrunt/default.nix b/pkgs/applications/networking/cluster/terragrunt/default.nix index 7ed2cef0e3ba2..b245b78e10ab8 100644 --- a/pkgs/applications/networking/cluster/terragrunt/default.nix +++ b/pkgs/applications/networking/cluster/terragrunt/default.nix @@ -2,7 +2,7 @@ buildGoPackage rec { name = "terragrunt-${version}"; - version = "0.11.1"; + version = "0.12.15"; goPackagePath = "github.com/gruntwork-io/terragrunt"; @@ -10,7 +10,7 @@ buildGoPackage rec { rev = "v${version}"; owner = "gruntwork-io"; repo = "terragrunt"; - sha256 = "061ix4m64i8bvjpqm6hn83nnkvqrp5y0hh5gzmxiik2nz3by1rx5"; + sha256 = "1khmxqzhhkr6km4zfn0q3zm55wgc92hrayvqkf9snzr816c1qzp3"; }; goDeps = ./deps.nix; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 725e304ef0dc4..e17fa7545f7fa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18426,7 +18426,9 @@ with pkgs; terraform_0_9 = terraform_0_9_4; terraform = terraform_0_9; - terragrunt = callPackage ../applications/networking/cluster/terragrunt { + terragrunt = callPackage ../applications/networking/cluster/terragrunt {}; + + terragrunt_0_11_1 = callPackage ../applications/networking/cluster/terragrunt/0.11.1.nix { terraform = terraform_0_8; }; |