nb: Use bashInteractive to fix shell subcommand (#375817)
The `nb shell` subcommand relies on Bash's `read` and the default Bash in stdenv has unexpected behavior, characters aren't echoed and arrow keys do not seem to recall history. By adding `bashInteractive` to the buildInputs, patchShebangs picks it up and this fixes the behavior. Fixes #374606
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
testers,
|
||||
nix-update-script,
|
||||
nb,
|
||||
bashInteractive,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -21,6 +22,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
buildInputs = [ bashInteractive ];
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
|
||||
Reference in New Issue
Block a user