Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildHomeAssistantComponent,
|
|
fetchFromGitHub,
|
|
aiohomematic,
|
|
home-assistant,
|
|
}:
|
|
|
|
buildHomeAssistantComponent rec {
|
|
owner = "SukramJ";
|
|
domain = "homematicip_local";
|
|
version = "1.88.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SukramJ";
|
|
repo = "custom_homematic";
|
|
tag = version;
|
|
hash = "sha256-SAjASZgcpEx/8kiBb8JGifYXnIx2cMbt6c2JNk/n/QU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
min_ha_version="$(sed -nr 's/^HMIP_LOCAL_MIN_HA_VERSION.*= "([0-9.]+)"$/\1/p' custom_components/homematicip_local/const.py)"
|
|
test \
|
|
"$(printf '%s\n' "$min_ha_version" "${home-assistant.version}" | sort -V | head -n1)" = "$min_ha_version" \
|
|
|| (echo "error: only Home Assistant >= $min_ha_version is supported" && exit 1)
|
|
'';
|
|
|
|
dependencies = [
|
|
aiohomematic
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/SukramJ/custom_homematic/blob/${src.tag}/changelog.md";
|
|
description = "Custom Home Assistant Component for HomeMatic";
|
|
homepage = "https://github.com/SukramJ/custom_homematic";
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|