diff --git a/pkgs/tools/misc/expect/default.nix b/pkgs/tools/misc/expect/default.nix index 9e286ba3b703..f17395b9ece8 100644 --- a/pkgs/tools/misc/expect/default.nix +++ b/pkgs/tools/misc/expect/default.nix @@ -17,8 +17,9 @@ stdenv.mkDerivation { # substituteInPlace exp_inter.c --replace tcl.h tclInt.h #''; - coreutils = stdenv.coreutils; - patchPhase = '' sed -i "s@/bin/stty@$coreutils/bin/stty@" configure ''; + patchPhase = '' + substituteInPlace configure --replace /bin/stty "$(type -tP stty)" + ''; configureFlags = "--with-tcl=${tcl}/lib --with-tclinclude=${tcl}/include";