make the vscode devshell the default, and work around weirdness in starship

This commit is contained in:
vivlim 2022-12-21 02:51:56 -08:00
parent 0c2f912793
commit 918d96ddd6
1 changed files with 7 additions and 3 deletions

View File

@ -40,8 +40,9 @@
libxkbcommon wayland # To use wayland feature
gdk-pixbuf atk pango cairo gtk3-x11 # additional dependencies for voxel-level-editor
];
in {
devShell =
in rec {
devShell = devShells.vscode;
devShells.novscode =
pkgs.mkShell {
nativeBuildInputs = toolchain ++ (nativeBuildInputs pkgs);
buildInputs = (buildInputs pkgs);
@ -67,8 +68,11 @@
sha256 = "sha256-SMHLg2h51aRvOyqLd4JILYzsBY5HkMXm28iVSTdX43U=";
}
];
})];
}) pkgs.zsh ];
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (buildInputs pkgs);
shellHook = ''
alias code="SHELL=zsh code" # horrible workaround for the combo of bash + vscode + nix-shell breaking starship.
'';
};
});
}