From 4e63119c540e4b732d61f1753b9f6dda3194a69e Mon Sep 17 00:00:00 2001 From: Raitis Date: Tue, 6 Feb 2018 21:09:22 +0000 Subject: [PATCH] terraform: add the version component to terraform provider paths (#34497) Terraform checks the provider versions, but this breaks if the versions are not provided, as they can be, if the plugins are provided by nix. --- .../networking/cluster/terraform/providers/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/networking/cluster/terraform/providers/default.nix b/pkgs/applications/networking/cluster/terraform/providers/default.nix index 72da1dd77d5..40117b45855 100644 --- a/pkgs/applications/networking/cluster/terraform/providers/default.nix +++ b/pkgs/applications/networking/cluster/terraform/providers/default.nix @@ -11,6 +11,10 @@ let inherit owner repo sha256; rev = "v${version}"; }; + + # Terraform allow checking the provider versions, but this breaks + # if the versions are not provided via file paths. + postBuild = "mv go/bin/${repo}{,_v${version}}"; }; maybeDrv = name: data: