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

38 lines
984 B
Nix

{
lib,
namespace,
pkgs,
buildHomeAssistantComponent,
home-assistant,
...
}:
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.icloud3;
version = src-meta.tag or src-meta.rev;
in
buildHomeAssistantComponent {
inherit (src-meta) owner;
domain = "icloud3";
inherit version;
src = sources.icloud3;
nativeBuildInputs = with home-assistant.python.pkgs; [
fido2
srp
];
meta = {
changelog = "https://github.com/gcobb321/icloud3/releases/tag/${version}";
description = "Cloud3 is a device tracker custom component that tracks your iPhones, iPads and Apple Watches. Devices in the Family Sharing List and the HA Mobile App Integration are trackable.";
homepage = "https://github.com/gcobb321/icloud3";
maintainers = [ ];
};
}