terraform: fix /bin/stty reference (#85560)

This commit is contained in:
Mario Rodas 2020-04-19 11:07:39 -05:00 committed by GitHub
parent 6cfb2c8ebc
commit 8084edb11c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ stdenv, lib, buildEnv, buildGoPackage, fetchFromGitHub, makeWrapper { stdenv, lib, buildEnv, buildGoPackage, fetchFromGitHub, makeWrapper, coreutils
, runCommand, writeText, terraform-providers }: , runCommand, writeText, terraform-providers }:
let let
@ -18,6 +18,12 @@ let
inherit sha256; 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 = '' postInstall = ''
# remove all plugins, they are part of the main binary now # remove all plugins, they are part of the main binary now
for i in $bin/bin/*; do for i in $bin/bin/*; do