···8585 );86868787 buildShellEnv =8888- { drvAttrs }:8888+ {8989+ drvAttrs,9090+ promptPrefix ? "build shell",9191+ promptName ? null,9292+ }:8993 let9094 name = drvAttrs.pname or drvAttrs.name or "shell";9195 env = unstructuredDerivationInputEnv { inherit drvAttrs; };···130126 esac131127132128 # Prefix a line to the prompt to indicate that we are in a build shell133133- PS1=$"\n(\[\033[1;33m\]build shell: \[\033[1;34m\]$name\[\033[1;33m\]\[\033[0m\]) $PS1"129129+ PS1=$"\n(\[\033[1;33m\]"${lib.escapeShellArg promptPrefix}$": \[\033[1;34m\]"${130130+ if promptName != null then lib.escapeShellArg promptName else ''"$name"''131131+ }"\[\033[1;33m\]\[\033[0m\]) $PS1"134132135133 runHook shellHook136134 '';