feat: make shell nix work
This commit is contained in:
parent
05931a77d3
commit
b551325737
4 changed files with 1930 additions and 2220 deletions
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
4104
package-lock.json
generated
4104
package-lock.json
generated
File diff suppressed because it is too large
Load diff
15
package.json
15
package.json
|
@ -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"
|
||||
},
|
||||
|
|
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
Reference in a new issue