feat: make shell nix work

This commit is contained in:
Florian Schmitt 2025-01-23 20:54:26 +01:00
parent 05931a77d3
commit b551325737
4 changed files with 1930 additions and 2220 deletions

View file

@ -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"
'';
}