Skip to content

Commit 6e9eedf

Browse files
committed
terraform_0_12: add patch with fix for macos mojave when built with go 1.14
otherwise we get a crash on startup
1 parent 8658d6c commit 6e9eedf

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • pkgs/applications/networking/cluster/terraform

pkgs/applications/networking/cluster/terraform/default.nix

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ stdenv, lib, buildEnv, buildGoPackage, fetchFromGitHub, makeWrapper
2-
, runCommand, writeText, terraform-providers }:
2+
, runCommand, writeText, terraform-providers, fetchpatch }:
33

44
let
55
goPackagePath = "github.com/hashicorp/terraform";
@@ -114,7 +114,12 @@ in rec {
114114
terraform_0_12 = pluggable (generic {
115115
version = "0.12.20";
116116
sha256 = "1k94iwhdvp1ifg9w7y26cl89ihki2w9kxv8mz06pp9bnfwfw67x5";
117-
patches = [ ./provider-path.patch ];
117+
patches = [ ./provider-path.patch ]
118+
++ lib.optional stdenv.isDarwin (fetchpatch {
119+
name = "go1.14-mojave.patch";
120+
url = "https://github.com/hashicorp/terraform/pull/24562.patch";
121+
sha256 = "1k70kk4hli72x8gza6fy3vpckdm3sf881w61fmssrah3hgmfmbrs";
122+
});
118123
passthru = { inherit plugins; };
119124
});
120125

0 commit comments

Comments
 (0)