blob: 7f127b1065b6c177518f5f298b97a123b4ae8378 [file] [log] [blame]
Serge Bazanski18c1a262022-07-07 14:24:53 +02001love2d signage
2===
3
4As used in digital signage displays in HSWAW.
5
6Originally hosted on code.hackerspace.pl/informatic/love2d-signage, now in hscloud.
7
8
9Building & Running
10---
11
Piotr Dobrowolski8f986c12022-07-08 00:04:58 +020012Run the following in hscloud root:
13
Serge Bazanski18c1a262022-07-07 14:24:53 +020014 $ nix-build -A hswaw.signage.prod
15 $ result/bin/signage
16
17If the result doesn't run and complains about OpenGL not being available, try building the 'local' target instead, which will use your host `<nixpkgs>`:
18
19 $ nix-build -A hswaw.signage.local
20
21For non-NixOS systems you'll need something like `nixgl` to work around Nixpkgs-GL-on-Non-NixOS badness anyways.
22
Piotr Dobrowolski8f986c12022-07-08 00:04:58 +020023In order to run the app in more of a development environment with hot code reload and such use:
24
25 $ ENV=dev $(nix-build -A hswaw.signage.local.runtime --no-out-link)/bin/love hswaw/signage/
26
Serge Bazanski18c1a262022-07-07 14:24:53 +020027Custom configs
28---
29
Piotr Dobrowolski8f986c12022-07-08 00:04:58 +020030You can either modify config.lua and rebuild, or specify a custom config at runtime by setting the `SIGNAGE_CONFIG` environment variable.