-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
36 lines (33 loc) · 845 Bytes
/
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
defmodule Mix.Tasks.Compile.Nif do
def run(_args) do
{result, _errcode} = System.cmd("elixir", ["./make.exs"])
IO.binwrite(result)
end
end
defmodule Evac.MixProject do
use Mix.Project
def project do
[
app: :evac,
package: [
licenses: ["MIT"],
links: %{"Github" => "https://github.com/doawoo/evac"},
],
description: "A simple way to catch SIGINT in Elixir.",
compilers: [:elixir_make | Mix.compilers()],
make_targets: ["all"],
make_clean: ["clean"],
version: "0.2.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: [main: "readme", extras: ["README.md"]]
]
end
def deps do
[
{:ex_doc, "~> 0.28", only: :dev, runtime: false},
{:elixir_make, "~> 0.6", runtime: false}
]
end
end