memo/shell.nix

26 lines
459 B
Nix
Raw Normal View History

2025-01-23 20:54:26 +01:00
{
pkgs ? import <nixpkgs> { },
}:
with pkgs;
2024-01-11 17:17:52 +03:00
mkShell {
2025-01-23 20:54:26 +01:00
buildInputs = [
2024-01-11 17:17:52 +03:00
redis
bun
];
2024-01-11 21:14:26 +03:00
2025-01-23 20:54:26 +01:00
shellHook = ''
echo "
__ __ ___ __ __ __
| V | __| V |/__\
| \_/ | _|| \_/ | \/ |
|_| |_|___|_| |_|\__/
"
2024-01-11 21:14:26 +03:00
2025-01-23 20:54:26 +01:00
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"
2024-01-11 17:17:52 +03:00
'';
}