feat: make shell nix work
This commit is contained in:
parent
05931a77d3
commit
b551325737
4 changed files with 1930 additions and 2220 deletions
31
shell.nix
31
shell.nix
|
@ -1,24 +1,25 @@
|
|||
{ pkgs ? import <nixpkgs> {} }: with pkgs;
|
||||
{
|
||||
pkgs ? import <nixpkgs> { },
|
||||
}:
|
||||
with pkgs;
|
||||
|
||||
mkShell {
|
||||
buildInputs = [
|
||||
buildInputs = [
|
||||
redis
|
||||
bun
|
||||
];
|
||||
|
||||
shellHook =
|
||||
''
|
||||
echo "
|
||||
__ __ ___ __ __ __
|
||||
| V | __| V |/__\
|
||||
| \_/ | _|| \_/ | \/ |
|
||||
|_| |_|___|_| |_|\__/
|
||||
"
|
||||
redis-server &
|
||||
|
||||
export BUN_INSTALL="$HOME/.bun"
|
||||
export PATH="$BUN_INSTALL/bin:$PATH"
|
||||
shellHook = ''
|
||||
echo "
|
||||
__ __ ___ __ __ __
|
||||
| V | __| V |/__\
|
||||
| \_/ | _|| \_/ | \/ |
|
||||
|_| |_|___|_| |_|\__/
|
||||
"
|
||||
|
||||
bun run start
|
||||
export BUN_INSTALL="$HOME/.bun"
|
||||
export PATH="$BUN_INSTALL/bin:$PATH"
|
||||
|
||||
echo "Run 'bun install' for installing deps and 'redis-server --daemonize yes && bun run start' to start the servers"
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue