- Add explicit cookie to release config to fix missing COOKIE file - Add config/runtime.exs for environment-based configuration - Release now supports runtime environment variables - Binary starts successfully without COOKIE errors Environment variables supported: - SYSTANT_MQTT_HOST, SYSTANT_MQTT_PORT - SYSTANT_MQTT_USERNAME, SYSTANT_MQTT_PASSWORD - SYSTANT_STATS_TOPIC, SYSTANT_COMMAND_TOPIC - SYSTANT_PUBLISH_INTERVAL 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
825 B
Nix
27 lines
825 B
Nix
{ lib, beamPackages, fetchgit }:
|
|
|
|
beamPackages.mixRelease rec {
|
|
pname = "systant";
|
|
version = "0.1.0";
|
|
|
|
src = fetchgit {
|
|
url = "https://git.ryanpandya.com/ryan/systant.git";
|
|
rev = "92fc90e3b470dd2d11ba3a84745e33195e8e9db3";
|
|
sha256 = lib.fakeSha256; # Replace with actual hash after first build attempt
|
|
};
|
|
|
|
# Mix dependencies will be automatically fetched and cached by Nix
|
|
mixFodDeps = beamPackages.fetchMixDeps {
|
|
pname = "systant-mix-deps";
|
|
inherit src version;
|
|
sha256 = lib.fakeSha256; # Will get this from first build failure
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Systant - System stats MQTT daemon for monitoring system metrics";
|
|
homepage = "https://git.ryanpandya.com/ryan/systant";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
platforms = platforms.linux;
|
|
};
|
|
} |