diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-04-19 11:07:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-19 16:07:39 +0000 |
commit | 8084edb11c53e3ae36e980e3dfe7ea96d642f6c2 (patch) | |
tree | 3788f48bfb684069c88a9fdaea9a21329da562d2 /pkgs/applications | |
parent | 6cfb2c8ebc9db54bfe20b4e9849b1a2e8f8b43d2 (diff) |
terraform: fix /bin/stty reference (#85560)
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/networking/cluster/terraform/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/applications/networking/cluster/terraform/default.nix b/pkgs/applications/networking/cluster/terraform/default.nix index b9c82f97c4fd..ee27422a1391 100644 --- a/pkgs/applications/networking/cluster/terraform/default.nix +++ b/pkgs/applications/networking/cluster/terraform/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, buildEnv, buildGoPackage, fetchFromGitHub, makeWrapper +{ stdenv, lib, buildEnv, buildGoPackage, fetchFromGitHub, makeWrapper, coreutils , runCommand, writeText, terraform-providers }: let @@ -18,6 +18,12 @@ let inherit sha256; }; + postPatch = '' + # speakeasy hardcodes /bin/stty https://github.com/bgentry/speakeasy/issues/22 + substituteInPlace vendor/github.com/bgentry/speakeasy/speakeasy_unix.go \ + --replace "/bin/stty" "${coreutils}/bin/stty" + ''; + postInstall = '' # remove all plugins, they are part of the main binary now for i in $bin/bin/*; do |