terraform: fixup provider, provisioner binaries names.

The build for some reason produces binaries with the wrong name.
Terraform expects all its plugins to have a name of the form
`terraform-TYPE-NAME`. So we add the `terraform-` prefix manually.
This commit is contained in:
Mathieu Boespflug 2016-04-22 00:20:44 +02:00
parent ba08f0014d
commit 922383bb79

View file

@ -3741,7 +3741,9 @@ let
disabled = isGo14 || isGo15;
sha256 = "1f1xm5pyz1hxqm2k74psanirpydf71pmxixplyc2x2w68hgjzi2l";
buildInputs = [ ];
postInstall = ''
for i in $bin/bin/{provider,provisioner}-*; do mv $i $bin/bin/terraform-$(basename $i); done
'';
};
testify = buildGoPackage rec {