-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmix.exs
More file actions
71 lines (65 loc) · 2.01 KB
/
mix.exs
File metadata and controls
71 lines (65 loc) · 2.01 KB
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
66
67
68
69
70
71
defmodule Natch.MixProject do
use Mix.Project
@version "0.3.0"
def project do
[
app: :natch,
version: @version,
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: "Elixir client for ClickHouse database via FINE + clickhouse-cpp (native TCP)",
package: package(),
docs: docs(),
compilers: [:elixir_make] ++ Mix.compilers(),
make_targets: ["all"],
make_clean: ["clean"],
make_cwd: "native/natch_fine",
# Precompiler configuration
make_precompiler: {:nif, CCPrecompiler},
make_precompiler_url:
"https://github.com/Intellection/natch/releases/download/v#{@version}/@{artefact_filename}",
make_precompiler_nif_versions: [versions: ["2.17"]],
make_nif_filename: "natch_fine",
make_precompiler_priv_paths: ["natch_fine.*"]
]
end
defp package do
[
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/Intellection/natch",
"Changelog" => "https://github.com/Intellection/natch/blob/main/CHANGELOG.md"
},
files:
~w(lib priv native/natch_fine/src native/natch_fine/CMakeLists.txt native/natch_fine/Makefile native/clickhouse-cpp .formatter.exs mix.exs README.md LICENSE THIRD_PARTY_NOTICES.md CHANGELOG.md checksum*.exs)
]
end
defp docs do
[
main: "Natch",
extras: ["README.md"]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {Natch.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:fine, "~> 0.1.0"},
{:elixir_make, "~> 0.6", runtime: false},
{:cc_precompiler, "~> 0.1.0", runtime: false},
{:jason, "~> 1.4"},
{:decimal, "~> 2.0"},
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
{:benchee, "~> 1.3", only: :dev},
{:benchee_html, "~> 1.0", only: :dev},
{:pillar, "~> 0.31", only: :dev}
]
end
end