feat: refactor devshell as modular standalone path lol
This commit is contained in:
parent
41546aa83a
commit
9e6791569e
9 changed files with 284 additions and 79 deletions
19
devshells/web-bun.nix
Normal file
19
devshells/web-bun.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
pkgs.mkShell {
|
||||
name = "web-bun";
|
||||
packages = with pkgs; [
|
||||
bun
|
||||
nodejs_20
|
||||
yarn
|
||||
esbuild
|
||||
vscode-langservers-extracted
|
||||
];
|
||||
shellHook = ''
|
||||
mkdir -p "$PWD/.cache/bun"
|
||||
export BUN_INSTALL_CACHE="$PWD/.cache/bun"
|
||||
echo "Bun/Node web shell ready"
|
||||
echo "Bun: ${pkgs.bun.version}"
|
||||
echo "Node: ${pkgs.nodejs_20.version}"
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue