-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmix.exs
More file actions
43 lines (34 loc) · 997 Bytes
/
mix.exs
File metadata and controls
43 lines (34 loc) · 997 Bytes
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
defmodule HelloNeopixel.Mixfile do
use Mix.Project
@target System.get_env("NERVES_TARGET") || "rpi2"
def project do
[app: :hello_neopixel,
version: "0.1.0",
target: @target,
archives: [nerves_bootstrap: "~> 0.2.1"],
deps_path: "deps/#{@target}",
build_path: "_build/#{@target}",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: deps() ++ system(@target)]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[mod: {HelloNeopixel, []},
applications: [:logger, :nerves_neopixel]]
end
def deps do
[{:nerves, "~> 0.4.0"},
{:nerves_neopixel, "~> 0.3.0"}]
end
def system(target) do
[{:"nerves_system_#{target}", ">= 0.0.0"}]
end
def aliases do
["deps.precompile": ["nerves.precompile", "deps.precompile"],
"deps.loadpaths": ["deps.loadpaths", "nerves.loadpaths"]]
end
end