- Add postInstall hook to ensure COOKIE file exists - Include ERTS and disable beam stripping in release config - Handle mixRelease differences from local builds This ensures the Elixir release works properly when built via Nix. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
43 lines
843 B
Elixir
43 lines
843 B
Elixir
defmodule SystemStatsDaemon.MixProject do
|
|
use Mix.Project
|
|
|
|
def project do
|
|
[
|
|
app: :systant,
|
|
version: "0.1.0",
|
|
elixir: "~> 1.18",
|
|
start_permanent: Mix.env() == :prod,
|
|
deps: deps(),
|
|
releases: releases()
|
|
]
|
|
end
|
|
|
|
# Run "mix help compile.app" to learn about applications.
|
|
def application do
|
|
[
|
|
extra_applications: [:logger],
|
|
mod: {Systant.Application, []}
|
|
]
|
|
end
|
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
defp deps do
|
|
[
|
|
{:tortoise, "~> 0.9.5"},
|
|
{:jason, "~> 1.4"}
|
|
]
|
|
end
|
|
|
|
defp releases do
|
|
[
|
|
systant: [
|
|
include_executables_for: [:unix],
|
|
applications: [runtime_tools: :permanent],
|
|
cookie: "systant-cookie-change-in-production",
|
|
include_erts: true,
|
|
strip_beams: false
|
|
]
|
|
]
|
|
end
|
|
end
|