build: LICENSE, prepare Hex release
This commit is contained in:
25
LICENSE
Normal file
25
LICENSE
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
BSD 2-Clause License
|
||||||
|
|
||||||
|
Copyright (c) 2026, Steffen Beyer <steffen@beyer.io>
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
23
mix.exs
23
mix.exs
@@ -10,7 +10,9 @@ defmodule Parrhesia.MixProject do
|
|||||||
start_permanent: Mix.env() == :prod,
|
start_permanent: Mix.env() == :prod,
|
||||||
deps: deps(),
|
deps: deps(),
|
||||||
aliases: aliases(),
|
aliases: aliases(),
|
||||||
docs: docs()
|
docs: docs(),
|
||||||
|
description: description(),
|
||||||
|
package: package()
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -52,15 +54,17 @@ defmodule Parrhesia.MixProject do
|
|||||||
{:telemetry_poller, "~> 1.0"},
|
{:telemetry_poller, "~> 1.0"},
|
||||||
{:telemetry_metrics_prometheus, "~> 1.1"},
|
{:telemetry_metrics_prometheus, "~> 1.1"},
|
||||||
|
|
||||||
|
# Runtime: outbound WebSocket client (sync transport)
|
||||||
|
{:websockex, "~> 0.4"},
|
||||||
|
|
||||||
# Test tooling
|
# Test tooling
|
||||||
{:stream_data, "~> 1.0", only: :test},
|
{:stream_data, "~> 1.0", only: :test},
|
||||||
{:websockex, "~> 0.4"},
|
|
||||||
|
|
||||||
# Project tooling
|
# Project tooling
|
||||||
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
|
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
|
||||||
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
|
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
|
||||||
{:deps_changelog, "~> 0.3"},
|
{:deps_changelog, "~> 0.3", only: :dev, runtime: false},
|
||||||
{:igniter, "~> 0.6", only: [:dev, :test]}
|
{:igniter, "~> 0.6", only: [:dev, :test], runtime: false}
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -82,6 +86,17 @@ defmodule Parrhesia.MixProject do
|
|||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
defp description do
|
||||||
|
"Nostr event relay with WebSocket fanout, sync, and access control"
|
||||||
|
end
|
||||||
|
|
||||||
|
defp package do
|
||||||
|
[
|
||||||
|
licenses: ["BSD-2-Clause"],
|
||||||
|
links: %{"GitHub" => "https://git.teralink.net/tribes/parrhesia"}
|
||||||
|
]
|
||||||
|
end
|
||||||
|
|
||||||
defp docs do
|
defp docs do
|
||||||
[
|
[
|
||||||
main: "readme",
|
main: "readme",
|
||||||
|
|||||||
Reference in New Issue
Block a user