- Move Elixir code to server/ subdirectory for monorepo structure - Update flake.nix to provide packages and apps outputs for nix run support - Update nix/package.nix to accept src parameter instead of fetchgit - Add NixOS module export for easy consumption Now supports: nix run, nix build, and nix develop from git repo 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
625 B
Nix
29 lines
625 B
Nix
{
|
|
lib,
|
|
beamPackages,
|
|
src,
|
|
}:
|
|
|
|
beamPackages.mixRelease rec {
|
|
pname = "systant";
|
|
version = "0.1.0";
|
|
|
|
inherit src;
|
|
|
|
# Mix dependencies will be automatically fetched and cached by Nix
|
|
mixFodDeps = beamPackages.fetchMixDeps {
|
|
pname = "systant-mix-deps";
|
|
inherit src version;
|
|
sha256 = "sha256-g8L/ZzCaXznrd+YLCMgvV94NVTKoFnK/Y/RXXPIMAjg=";
|
|
};
|
|
|
|
|
|
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;
|
|
};
|
|
}
|