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

BIN
bun.lockb

Binary file not shown.

4104
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,19 +1,12 @@
{
"name": "scrumblr",
"description": "Web-based simulation of a physical agile sprint board that supports real-time collaboration.",
"name": "memo",
"description": "Web-based memos that support real-time collaboration. Inspired by scrumblr.",
"version": "1.0.0",
"license": "AGPL-3.0",
"repository": {
"url": "https://framagit.org/colibris/framemo"
},
"author": "Ali Asaria",
"main": "server.js",
"directories": {
"lib": "lib/"
},
"engines": {
"node": ">=0.4.7"
"url": "https://forge.mrflos.pw/mrflos/memo"
},
"author": "Florian Schmitt",
"scripts": {
"start": "nodemon server.js -e js,css,jade,json"
},

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