home-assistant-custom-component.smartir: use finalAttrs pattern
Also fix meta.changelog
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildHomeAssistantComponent rec {
|
||||
buildHomeAssistantComponent (finalAttrs: {
|
||||
owner = "smartHomeHub";
|
||||
domain = "smartir";
|
||||
version = "1.18.1";
|
||||
@@ -15,7 +15,7 @@ buildHomeAssistantComponent rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "smartHomeHub";
|
||||
repo = "SmartIR";
|
||||
tag = version;
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-gi5xlBOY6ek5roQKNqL7I0jrmJNPrxHHwEqOB/n2Itk=";
|
||||
};
|
||||
|
||||
@@ -31,10 +31,10 @@ buildHomeAssistantComponent rec {
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/smartHomeHub/SmartIR/releases/tag/v${version}";
|
||||
changelog = "https://github.com/smartHomeHub/SmartIR/releases/tag/${finalAttrs.version}";
|
||||
description = "Integration for Home Assistant to control climate, TV and fan devices via IR/RF controllers (Broadlink, Xiaomi, MQTT, LOOKin, ESPHome)";
|
||||
homepage = "https://github.com/smartHomeHub/SmartIR";
|
||||
maintainers = with lib.maintainers; [ azuwis ];
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user