add missing packages for frontend to shell.nix
This commit is contained in:
parent
416c8f2165
commit
817f574ec2
26
README.md
26
README.md
|
@ -56,4 +56,30 @@
|
||||||
- 11: (reserved)
|
- 11: (reserved)
|
||||||
- client responds with empty message to request the next frame
|
- client responds with empty message to request the next frame
|
||||||
|
|
||||||
|
# Building
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# checkout repo and submodules
|
||||||
|
git clone https://github.com/kaesaecracker/servicepoint-tanks.git
|
||||||
|
cd servicepoint-tanks
|
||||||
|
git submodule update --init
|
||||||
|
cd tanks-backend/servicepoint
|
||||||
|
git submodule update --init
|
||||||
|
cd ../..
|
||||||
|
|
||||||
|
# build with nix-shell
|
||||||
|
nix-shell
|
||||||
|
cd tank-frontent
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
cd ../tanks-backend
|
||||||
|
dotnet build
|
||||||
|
|
||||||
|
# build with docker/podman
|
||||||
|
cd tanks-backend
|
||||||
|
docker build .
|
||||||
|
cd ../tank-frontend
|
||||||
|
docker build .
|
||||||
|
cd ..
|
||||||
|
docker build .
|
||||||
|
```
|
||||||
|
|
17
shell.nix
17
shell.nix
|
@ -1,8 +1,16 @@
|
||||||
{pkgs ? import <nixpkgs> {}}:
|
{
|
||||||
|
pkgs ? import <nixpkgs> { },
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
rust-toolchain = pkgs.symlinkJoin {
|
rust-toolchain = pkgs.symlinkJoin {
|
||||||
name = "rust-toolchain";
|
name = "rust-toolchain";
|
||||||
paths = with pkgs; [rustc cargo rustPlatform.rustcSrc rustfmt clippy];
|
paths = with pkgs; [
|
||||||
|
rustc
|
||||||
|
cargo
|
||||||
|
rustPlatform.rustcSrc
|
||||||
|
rustfmt
|
||||||
|
clippy
|
||||||
|
];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
|
@ -16,6 +24,9 @@ pkgs.mkShell {
|
||||||
gnumake
|
gnumake
|
||||||
iconv
|
iconv
|
||||||
|
|
||||||
|
typescript
|
||||||
|
nodejs
|
||||||
|
|
||||||
dotnet-sdk_8
|
dotnet-sdk_8
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue