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.

4098
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

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

View file

@ -1,4 +1,7 @@
{ pkgs ? import <nixpkgs> {} }: with pkgs; {
pkgs ? import <nixpkgs> { },
}:
with pkgs;
mkShell { mkShell {
buildInputs = [ buildInputs = [
@ -6,19 +9,17 @@ mkShell {
bun bun
]; ];
shellHook = shellHook = ''
''
echo " echo "
__ __ ___ __ __ __ __ __ ___ __ __ __
| V | __| V |/__\ | V | __| V |/__\
| \_/ | _|| \_/ | \/ | | \_/ | _|| \_/ | \/ |
|_| |_|___|_| |_|\__/ |_| |_|___|_| |_|\__/
" "
redis-server &
export BUN_INSTALL="$HOME/.bun" export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH" export PATH="$BUN_INSTALL/bin:$PATH"
bun run start echo "Run 'bun install' for installing deps and 'redis-server --daemonize yes && bun run start' to start the servers"
''; '';
} }