-
Notifications
You must be signed in to change notification settings - Fork 8
/
nimha.nimble
36 lines (28 loc) · 850 Bytes
/
nimha.nimble
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Package
version = "0.4.5"
author = "Thomas T. Jarløv (https://github.com/ThomasTJdev)"
description = "Nim Home Assistant"
license = "GPLv3"
bin = @["nimha"]
skipDirs = @["private"]
installDirs = @["config", "public", "nimhapkg"]
# Dependencies
requires "nim >= 1.0.4"
requires "jester 0.4.3"
requires "httpbeast 0.2.2"
requires "recaptcha >= 1.0.2"
requires "bcrypt >= 0.2.1"
requires "multicast 0.1.4"
requires "websocket 0.4.1"
requires "wiringPiNim >= 0.1.0"
requires "xiaomi >= 0.1.4"
import distros
task setup, "Setup started":
if detectOs(Windows):
echo "Cannot run on Windows"
quit()
before install:
setupTask()
after install:
echo "Development: Copy config/nimha_default.cfg to config/nimha_dev.cfg\n"
echo "Production: Copy config/nimha_default.cfg to /etc/nimha/nimha.cfg\n"