-
Notifications
You must be signed in to change notification settings - Fork 12
/
mix.exs
60 lines (52 loc) · 1.31 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
defmodule Nerves.InitGadget.MixProject do
use Mix.Project
@version "0.7.0"
@description """
Simple initialization for devices running Nerves
"""
def project do
[
app: :nerves_init_gadget,
version: @version,
description: @description,
package: package(),
elixir: "~> 1.6",
docs: docs(),
dialyzer: dialyzer(),
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application() do
[extra_applications: [:logger], mod: {Nerves.InitGadget.Application, []}]
end
defp package() do
%{
maintainers: ["Frank Hunleth"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/nerves-project/nerves_init_gadget"}
}
end
defp docs() do
[main: "readme", extras: ["README.md"]]
end
defp deps() do
[
{:nerves_runtime, "~> 0.3"},
{:nerves_network, "~> 0.3"},
{:nerves_firmware_ssh, "~> 0.2"},
{:nerves_time, "~> 0.2"},
{:mdns, "~> 1.0"},
{:ring_logger, "~> 0.4"},
{:one_dhcpd, "~> 0.1"},
{:ex_doc, "~> 0.19", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0.0-rc.6", only: :dev, runtime: false}
]
end
defp dialyzer() do
[
flags: [:race_conditions, :error_handling],
ignore_warnings: ".dialyzer_ignore.exs"
]
end
end