-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
29 lines (23 loc) · 715 Bytes
/
shell.nix
File metadata and controls
29 lines (23 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
pkgs ? import <nixpkgs> { },
}:
pkgs.mkShell {
nativeBuildInputs = with pkgs.buildPackages; [
vue-language-server
vtsls
prettier
nodejs_24
];
shellHook = ''
echo -e "\033[1;32mWelcome to the Extinction development environment!\033[0m"
echo -e "\033[1;34mAvailable aliases:\033[0m"
i() { npm install "$@"; }
b-firefox() { TARGET=firefox npm run build "$@"; }
b-chrome() { TARGET=chrome npm run build "$@"; }
export -f i b-firefox b-chrome
echo -e " \033[1;33mi\033[0m npm install"
echo -e " \033[1;33mb-firefox\033[0m TARGET=firefox npm run build"
echo -e " \033[1;33mb-chrome\033[0m TARGET=chrome npm run build"
echo
'';
}