-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
42 lines (38 loc) · 1.44 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
instance_dep = {:antikythera_instance_example, [git: "https://github.com/access-company/antikythera_instance_example.git"]}
try do
deps_dir =
# Gears use mix settings of both antikythera and antikythera instance and thus paths to these projects must be available.
# We have to remember `deps_path()` so that gear dependencies with `:path` option can reach these projects.
case Application.get_env(:antikythera, :compile_time_deps_dir) do
nil -> # this gear project is the toplevel mix project
deps_path = Mix.Project.deps_path()
Application.put_env(:antikythera, :compile_time_deps_dir, deps_path)
deps_path
deps_path -> deps_path # this gear project is used by another gear as a gear dependency
end
Code.require_file(Path.join([deps_dir, "antikythera", "mix_common.exs"]))
defmodule IotIntern.Mixfile do
use Antikythera.GearProject, [
antikythera_instance_dep: instance_dep,
]
defp gear_name(), do: :iot_intern
defp version() , do: "0.0.1"
defp gear_deps() do
[
# List of gear dependencies, e.g.
# {:some_gear, [git: "[email protected]:some-organization/some_gear.git"]},
]
end
end
rescue
_any_error ->
defmodule AntikytheraGearInitialSetup.Mixfile do
use Mix.Project
def project() do
[
app: :just_to_fetch_antikythera_instance_as_a_dependency,
deps: [unquote(instance_dep)],
]
end
end
end