Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
terra{form,grunt}: Add some needed old versions
- Loading branch information
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ stdenv, lib, buildGoPackage, fetchFromGitHub }: | ||
|
||
buildGoPackage rec { | ||
name = "terraform-${version}"; | ||
version = "0.8.5"; | ||
|
||
goPackagePath = "github.com/hashicorp/terraform"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "hashicorp"; | ||
repo = "terraform"; | ||
rev = "v${version}"; | ||
sha256 = "1cxwv3652fpsbm2zk1akw356cd7w7vhny1623ighgbz9ha8gvg09"; | ||
}; | ||
|
||
postInstall = '' | ||
# remove all plugins, they are part of the main binary now | ||
for i in $bin/bin/*; do | ||
if [[ $(basename $i) != terraform ]]; then | ||
rm "$i" | ||
fi | ||
done | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Tool for building, changing, and versioning infrastructure"; | ||
homepage = "https://www.terraform.io/"; | ||
license = licenses.mpl20; | ||
maintainers = with maintainers; [ | ||
jgeerds | ||
zimbatm | ||
]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ stdenv, lib, buildGoPackage, fetchFromGitHub, terraform, makeWrapper }: | ||
|
||
buildGoPackage rec { | ||
name = "terragrunt-${version}"; | ||
version = "0.9.8"; | ||
|
||
goPackagePath = "github.com/gruntwork-io/terragrunt"; | ||
|
||
src = fetchFromGitHub { | ||
rev = "v${version}"; | ||
owner = "gruntwork-io"; | ||
repo = "terragrunt"; | ||
sha256 = "0aakr17yzh5jzvlmg3pzpnsfwl31njg27bpck541492shqcqmkiz"; | ||
}; | ||
|
||
goDeps = ./deps.nix; | ||
|
||
buildInputs = [ makeWrapper ]; | ||
|
||
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5fa84fb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What needs them vs. a simple local
overrideDerivation
?5fa84fb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
End users, terraform minor version changes have been known to cause breakage.