terraform: fix /bin/stty reference (#85560)
This commit is contained in:
parent
6cfb2c8ebc
commit
8084edb11c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user