-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
79 lines (71 loc) · 2.38 KB
/
mix.exs
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
defmodule SuperbirdClock.MixProject do
use Mix.Project
@app :superbird_clock
@version "0.1.0"
@all_targets [
:superbird
]
def project do
[
app: @app,
version: @version,
elixir: "~> 1.17",
archives: [nerves_bootstrap: "~> 1.13"],
start_permanent: Mix.env() == :prod,
deps: deps(),
releases: [{@app, release()}],
preferred_cli_target: [run: :host, test: :host]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :runtime_tools],
mod: {SuperbirdClock.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# Dependencies for all targets
{:nerves, "~> 1.10", runtime: false},
{:shoehorn, "~> 0.9.1"},
{:ring_logger, "~> 0.11.0"},
{:toolshed, "~> 0.4.0"},
{:scenic_clock, "~> 0.11.0"},
# Allow Nerves.Runtime on host to support development, testing and CI.
# See config/host.exs for usage.
{:nerves_runtime, "~> 0.13.0"},
{:scenic_driver_local, "~> 0.12.0-rc.0"},
# Dependencies for all targets except :host
{:nerves_pack, "~> 0.7.1", targets: @all_targets},
{:nerves_time_zones, "~> 0.3.2", targets: @all_targets},
# Dependencies for specific targets
# NOTE: It's generally low risk and recommended to follow minor version
# bumps to Nerves systems. Since these include Linux kernel and Erlang
# version updates, please review their release notes in case
# changes to your application are needed.
{:nerves_system_superbird,
github: "ericr3r/nerves_system_superbird",
tag: "v1.28.2",
runtime: false,
targets: :superbird},
{:scenic,
git: "https://github.com/ScenicFramework/scenic.git", branch: "main", override: true},
{:truetype_metrics, "~> 0.5", runtime: false},
{:ex_image_info, "~> 0.2.4", runtime: false},
{:dialyxir, "~> 1.1", only: :dev, runtime: false}
]
end
def release do
[
overwrite: true,
# Erlang distribution is not started automatically.
# See https://hexdocs.pm/nerves_pack/readme.html#erlang-distribution
cookie: "#{@app}_cookie",
include_erts: &Nerves.Release.erts/0,
steps: [&Nerves.Release.init/1, :assemble],
strip_beams: Mix.env() == :prod or [keep: ["Docs"]]
]
end
end