From 922383bb791a9ceb126daeed3a31726f17ef82e5 Mon Sep 17 00:00:00 2001 From: Mathieu Boespflug Date: Fri, 22 Apr 2016 00:20:44 +0200 Subject: [PATCH] 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. --- pkgs/top-level/go-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/go-packages.nix b/pkgs/top-level/go-packages.nix index 941f77d9a61e..f9c4b2878ce0 100644 --- a/pkgs/top-level/go-packages.nix +++ b/pkgs/top-level/go-packages.nix @@ -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 {