3
0
Fork 0
forked from mirrors/nixpkgs

terraform: extracted from goPackages

This commit is contained in:
Kamil Chmielewski 2016-06-05 11:16:58 +02:00
parent 826ff3efc2
commit e89a086f06
3 changed files with 28 additions and 18 deletions

View file

@ -0,0 +1,27 @@
# This file was generated by go2nix.
{ stdenv, lib, go16Packages, fetchgit, fetchhg, fetchbzr, fetchsvn }:
with go16Packages;
buildGoPackage rec {
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
'';
}

View file

@ -16763,7 +16763,7 @@ in
sqsh = callPackage ../development/tools/sqsh { };
terraform = goPackages.terraform.bin // { outputs = [ "bin" ]; };
terraform = callPackage ../applications/networking/cluster/terraform { };
tetex = callPackage ../tools/typesetting/tex/tetex { libpng = libpng12; };

View file

@ -3330,23 +3330,6 @@ let
subPackages = [ "./" ]; # prevent building _demos
};
terraform = buildFromGitHub {
rev = "v0.6.15";
owner = "hashicorp";
repo = "terraform";
disabled = isGo14 || isGo15;
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
'';
};
testify = buildGoPackage rec {
rev = "089c7181b8c728499929ff09b62d3fdd8df8adff";
name = "testify-${stdenv.lib.strings.substring 0 7 rev}";