-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
65 lines (57 loc) · 1.47 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
61
62
63
64
65
defmodule NostrTools.MixProject do
use Mix.Project
@source_url "https://github.com/neoamos/nostr_tools_ex"
def project do
[
app: :nostr_tools,
version: "0.1.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
docs: docs(),
source_url: @source_url,
name: "NostrTools",
dialyzer: [
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
]
end
def application do
[
extra_applications: [:logger, :crypto]
]
end
defp description() do
"""
Core Nostr primitives and related functions.
"""
end
defp package() do
[
maintainers: ["Amos Newswanger"],
licenses: ["WTFPL"],
links: %{"GitHub" => @source_url}
]
end
defp docs() do
[
main: "NostrTools", # The main page in the docs
source_url_pattern: "#{@source_url}/blob/master/%{path}#L%{line}",
extras: ["README.md"]
]
end
defp deps do
[
{:secp256k1, git: "https://git.sr.ht/~sgiath/secp256k1", ref: "04d2d87a8a5009f2a6bc22b90c4c05401c57b7c7"},
{:jason, "~> 1.3"},
# Dev
{:ex_doc, "~> 0.28", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.2", only: [:dev, :test], runtime: false},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:mix_test_watch, "~> 1.1", only: :dev, runtime: false}
]
end
end