dev shell: Add bashInteractive
This was bothersome to me as a zsh+direnv user. Change-Id: Ia5b54cc63647a5c6ced2b5412e972dac1abf8184
This commit is contained in:
parent
73898cad0e
commit
248ecb11af
1 changed files with 14 additions and 6 deletions
20
package.nix
20
package.nix
|
@ -390,16 +390,20 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
mkDevShell =
|
mkDevShell =
|
||||||
{
|
{
|
||||||
mkShell,
|
mkShell,
|
||||||
just,
|
|
||||||
nixfmt,
|
bashInteractive,
|
||||||
glibcLocales,
|
|
||||||
pre-commit-checks,
|
|
||||||
clang-tools,
|
clang-tools,
|
||||||
llvmPackages,
|
|
||||||
clangbuildanalyzer,
|
clangbuildanalyzer,
|
||||||
contribNotice,
|
glibcLocales,
|
||||||
|
just,
|
||||||
|
llvmPackages,
|
||||||
|
nixfmt,
|
||||||
skopeo,
|
skopeo,
|
||||||
xonsh,
|
xonsh,
|
||||||
|
|
||||||
|
# Lix specific packages
|
||||||
|
pre-commit-checks,
|
||||||
|
contribNotice,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
glibcFix = lib.optionalAttrs (buildPlatform.isLinux && glibcLocales != null) {
|
glibcFix = lib.optionalAttrs (buildPlatform.isLinux && glibcLocales != null) {
|
||||||
|
@ -446,6 +450,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
packages =
|
packages =
|
||||||
lib.optional (stdenv.cc.isClang && hostPlatform == buildPlatform) clang-tools
|
lib.optional (stdenv.cc.isClang && hostPlatform == buildPlatform) clang-tools
|
||||||
++ [
|
++ [
|
||||||
|
# Why are we providing a bashInteractive? Well, when you run
|
||||||
|
# `bash` from inside `nix develop`, say, because you are using it
|
||||||
|
# via direnv, you will by default get bash (unusable edition).
|
||||||
|
bashInteractive
|
||||||
pythonEnv
|
pythonEnv
|
||||||
# docker image tool
|
# docker image tool
|
||||||
skopeo
|
skopeo
|
||||||
|
|
Loading…
Reference in a new issue