git.iko.soy/typeable/nixpkgs
on master help sign in
terra{form,grunt}: Add some needed old versions
commit5fa84fb1a8cd1f5e6268f0276f572c54d106aa96 authorShea Levy <shea@shealevy.com> dateTue 14 Mar 2017, 16:31 (10 years ago) parent496120c
3 files changed+71
pkgs/applications/networking/cluster/terraform/0.8.5.nix+34 pkgs/applications/networking/cluster/terragrunt/0.9.8.nix+31 pkgs/top-level/all-packages.nix+6
pkgs/applications/networking/cluster/terraform/0.8.5.nixnew file+34
@@ -0,0 +1,34 @@
1+{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
2+
3+buildGoPackage rec {
4+ name = "terraform-${version}";
5+ version = "0.8.5";
6+
7+ goPackagePath = "github.com/hashicorp/terraform";
8+
9+ src = fetchFromGitHub {
10+ owner = "hashicorp";
11+ repo = "terraform";
12+ rev = "v${version}";
13+ sha256 = "1cxwv3652fpsbm2zk1akw356cd7w7vhny1623ighgbz9ha8gvg09";
14+ };
15+
16+ postInstall = ''
17+ # remove all plugins, they are part of the main binary now
18+ for i in $bin/bin/*; do
19+ if [[ $(basename $i) != terraform ]]; then
20+ rm "$i"
21+ fi
22+ done
23+ '';
24+
25+ meta = with stdenv.lib; {
26+ description = "Tool for building, changing, and versioning infrastructure";
27+ homepage = "https://www.terraform.io/";
28+ license = licenses.mpl20;
29+ maintainers = with maintainers; [
30+ jgeerds
31+ zimbatm
32+ ];
33+ };
34+}
pkgs/applications/networking/cluster/terragrunt/0.9.8.nixnew file+31
@@ -0,0 +1,31 @@
1+{ stdenv, lib, buildGoPackage, fetchFromGitHub, terraform, makeWrapper }:
2+
3+buildGoPackage rec {
4+ name = "terragrunt-${version}";
5+ version = "0.9.8";
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 = "0aakr17yzh5jzvlmg3pzpnsfwl31njg27bpck541492shqcqmkiz";
14+ };
15+
16+ goDeps = ./deps.nix;
17+
18+ buildInputs = [ makeWrapper ];
19+
20+ postInstall = ''
21+ wrapProgram $bin/bin/terragrunt \
22+ --set TERRAGRUNT_TFPATH ${lib.getBin terraform}/bin/terraform
23+ '';
24+
25+ meta = with stdenv.lib; {
26+ description = "A thin wrapper for Terraform that supports locking for Terraform state and enforces best practices.";
27+ homepage = https://github.com/gruntwork-io/terragrunt/;
28+ license = licenses.mit;
29+ maintainers = with maintainers; [ peterhoeg ];
30+ };
31+}
pkgs/top-level/all-packages.nix+6
@@ -17984,8 +17984,14 @@ with pkgs;
1798417984
1798517985 terraform = callPackage ../applications/networking/cluster/terraform {};
1798617986
17987+ terraform_0_8_5 = callPackage ../applications/networking/cluster/terraform/0.8.5.nix {};
17988+
1798717989 terragrunt = callPackage ../applications/networking/cluster/terragrunt {};
1798817990
17991+ terragrunt_0_9_8 = callPackage ../applications/networking/cluster/terragrunt/0.9.8.nix {
17992+ terraform = terraform_0_8_5;
17993+ };
17994+
1798917995 tetex = callPackage ../tools/typesetting/tex/tetex { libpng = libpng12; };
1799017996
1799117997 tewi-font = callPackage ../data/fonts/tewi {};