-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
89 lines (76 loc) · 1.98 KB
/
Copy pathmix.exs
File metadata and controls
89 lines (76 loc) · 1.98 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
# SPDX-FileCopyrightText: 2025 Phronesis Contributors
defmodule Phronesis.MixProject do
use Mix.Project
@version "0.9.0"
@source_url "https://github.com/hyperpolymath/phronesis"
def project do
[
app: :phronesis,
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
docs: docs(),
dialyzer: dialyzer(),
escript: escript()
]
end
def application do
[
extra_applications: [:logger, :crypto, :inets],
mod: {Phronesis.Application, []}
]
end
defp deps do
[
# JSON encoding/decoding for LSP server
{:jason, "~> 1.4"},
# Raft consensus library for distributed consensus
{:ra, "~> 3.1"},
# Property-based testing with StreamData (CRG Grade C requirement)
{:stream_data, "~> 1.0", only: :test}
]
# Note: Additional dependencies can be added when hex.pm is available:
# {:nimble_parsec, "~> 1.4"},
# {:ex_doc, "~> 0.31", only: :dev, runtime: false},
# {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
# {:credo, "~> 1.7", only: [:dev, :test], runtime: false}
end
defp description do
"""
Phronesis: A Policy Language for Network Configuration.
A minimal, decidable DSL for expressing network policies with
consensus-gated execution and formal verification guarantees.
"""
end
defp package do
[
name: "phronesis",
licenses: ["MPL-2.0"],
links: %{"GitHub" => @source_url}
]
end
defp docs do
[
main: "Phronesis",
source_url: @source_url,
extras: ["README.adoc"]
]
end
defp dialyzer do
[
plt_add_apps: [:mix],
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
end
defp escript do
[
main_module: Phronesis.CLI,
name: "phronesis"
]
end
end