-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
56 lines (51 loc) · 1.16 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
defmodule Djot.MixProject do
use Mix.Project
@source_url "https://github.com/paradox460/djot"
@version "0.1.4"
@dev? String.ends_with?(@version, "-dev")
@force_build? System.get_env("DJOT_BUILD") in ~w[1 true]
def project do
[
app: :djot,
version: @version,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
source_url: @source_url,
homepage_url: @source_url,
name: "Djot",
description: "A Djot markup language parser and formatter",
deps: deps(),
package: package()
]
end
def package do
[
maintainers: ["Jeff Sandberg"],
licenses: ["MIT"],
links: %{
GitHub: @source_url,
Djot: "https://djot.net",
},
files: ~w[
lib
native/djot_nif/src
native/djot_nif/.cargo
native/djot_nif/Cargo.*
checksum-*.exs
mix.exs
README.md
LICENSE
]
]
end
def application do
[]
end
defp deps do
[
{:rustler, ">= 0.32.0", optional: not (@dev? or @force_build?)},
{:rustler_precompiled, "~> 0.8"},
{:ex_doc, "~> 0.34.2", only: :dev, runtime: false}
]
end
end