about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/networking/cluster/terraform/provider-path-0_15.patch
blob: 1896d6018f0529de3280d0841009e4d1072bb90e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff -Naur terraform.old/command/init.go terraform.new/command/init.go
--- terraform.old/command/init.go
+++ terraform.new/command/init.go
@@ -3,6 +3,7 @@
 import (
 	"context"
 	"fmt"
+	"os"
 	"log"
 	"strings"
 
@@ -55,6 +56,11 @@
 
 	var diags tfdiags.Diagnostics
 
+	val, ok := os.LookupEnv("NIX_TERRAFORM_PLUGIN_DIR")
+	if ok {
+		flagPluginPath = append(flagPluginPath, val)
+	}
+
 	if len(flagPluginPath) > 0 {
 		c.pluginPath = flagPluginPath
 	}