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:
toonn
2025-01-22 19:35:23 +05:30
committed by GitHub
parent cfe3cc1adb
commit 1be7fe5e1d
+3
View File
@@ -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 = ''