summary refs log tree commit diff
diff options
context:
space:
mode:
authorRaitis <wimuan@gmail.com>2018-02-06 21:09:22 +0000
committerzimbatm <zimbatm@zimbatm.com>2018-02-06 21:09:22 +0000
commit4e63119c540e4b732d61f1753b9f6dda3194a69e (patch)
tree8bd54ff15510bf9e94e155ab998a4310438987a5
parentedeacd00ada72c70661c4f421146134b42feb815 (diff)
downloadnixlib-4e63119c540e4b732d61f1753b9f6dda3194a69e.tar
nixlib-4e63119c540e4b732d61f1753b9f6dda3194a69e.tar.gz
nixlib-4e63119c540e4b732d61f1753b9f6dda3194a69e.tar.bz2
nixlib-4e63119c540e4b732d61f1753b9f6dda3194a69e.tar.lz
nixlib-4e63119c540e4b732d61f1753b9f6dda3194a69e.tar.xz
nixlib-4e63119c540e4b732d61f1753b9f6dda3194a69e.tar.zst
nixlib-4e63119c540e4b732d61f1753b9f6dda3194a69e.zip
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.
-rw-r--r--pkgs/applications/networking/cluster/terraform/providers/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/terraform/providers/default.nix b/pkgs/applications/networking/cluster/terraform/providers/default.nix
index 72da1dd77d57..40117b458550 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: