forked from mbrix/libsecp256k1
-
Notifications
You must be signed in to change notification settings - Fork 23
/
mix.exs
48 lines (44 loc) · 1.11 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
defmodule Mix.Tasks.Compile.MakeBindings do
def run(_) do
{_, exit_code} = System.cmd("make", [], into: IO.stream(:stdio, :line))
case exit_code do
0 -> :ok
_ -> :error
end
end
end
defmodule Libsecp256k1.Mixfile do
use Mix.Project
def project do
[
app: :libsecp256k1,
version: "0.1.10",
language: :erlang,
description: "Erlang NIF bindings for the the libsecp256k1 library",
package: [
files: [
"LICENSE",
"Makefile",
"README.md",
"c_src/build_deps.sh",
"c_src/libsecp256k1_nif.c",
"etest/libsecp256k1_tests.erl",
"mix.exs",
"priv/.empty",
"src/libsecp256k1.erl"
],
maintainers: ["Matthew Branton", "Geoffrey Hayes"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/exthereum/libsecp256k1"}
],
compilers: [:make_bindings, :erlang, :app],
deps: deps()
]
end
defp deps() do
[
{:mix_erlang_tasks, "0.1.0", runtime: false},
{:ex_doc, "~> 0.17", only: :dev, runtime: false}
]
end
end