Files
nix-config/packages/homeassistant/ha-anycubic/default.nix
2026-04-05 19:10:23 -05:00

34 lines
862 B
Nix

{
lib,
namespace,
pkgs,
buildHomeAssistantComponent,
...
}:
let
inherit (lib.trivial) importJSON;
inherit (lib.${namespace}) selectVariant mkAllSources;
versionSpec = importJSON ./version.json;
selected = selectVariant versionSpec null null;
sources = mkAllSources pkgs selected;
src-meta = selected.sources.anycubic;
version = src-meta.tag or src-meta.rev;
in
buildHomeAssistantComponent {
inherit (src-meta) owner;
inherit version;
domain = "anycubic_wifi";
src = sources.anycubic;
nativeBuildInputs = [ pkgs.${namespace}.uart-wifi ];
meta = {
changelog = "https://github.com/adamoutler/anycubic-homeassistant/releases/tag/${version}";
description = "This is a library to provide support for Mono X Printers.";
homepage = "https://github.com/adamoutler/anycubic-homeassistant";
maintainers = [ ];
};
}