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/terraform/default.nix

25 lines
619 B
Nix
Raw Normal View History

2016-06-06 01:28:52 +01:00
{ stdenv, lib, buildGo16Package, fetchgit, fetchhg, fetchbzr, fetchsvn }:
2016-06-05 10:16:58 +01:00
2016-06-06 01:28:52 +01:00
buildGo16Package rec {
2016-06-05 10:16:58 +01:00
name = "terraform-${version}";
version = "0.6.15";
rev = "v${version}";
goPackagePath = "github.com/hashicorp/terraform";
src = fetchgit {
inherit rev;
url = "https://github.com/hashicorp/terraform";
sha256 = "1mf98hagb0yp40g2mbar7aw7hmpq01clnil6y9khvykrb33vy0nb";
};
postInstall = ''
# prefix all the plugins with "terraform-"
for i in $bin/bin/*; do
if [[ ! $(basename $i) =~ terraform* ]]; then
mv -v $i $bin/bin/terraform-$(basename $i);
fi
done
'';
}