move all hacs modules to packages
This commit is contained in:
32
packages/ha-gehome/default.nix
Normal file
32
packages/ha-gehome/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ buildHomeAssistantComponent, fetchFromGitHub, python3Packages, namespace, ... }:
|
||||
buildHomeAssistantComponent rec {
|
||||
owner = "simbaja";
|
||||
domain = "ge_home";
|
||||
version = "v2025.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = owner;
|
||||
repo = "ha_gehome";
|
||||
rev = version;
|
||||
hash = "sha256-NlUkM70yvBeC5s7S5BkNxIC2GztfEq8xYrQZr4pkaGU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
gehomesdk
|
||||
slixmpp
|
||||
|
||||
pkgs.${namespace}.magicattr
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace custom_components/ge_home/manifest.json \
|
||||
--replace '"slixmpp==1.8.3"' '"slixmpp>=1.8.3"'
|
||||
'';
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/simbaja/ha_gehome/releases/tag/${version}";
|
||||
description = "Integration for GE WiFi-enabled appliances into Home Assistant.";
|
||||
homepage = "https://github.com/simbaja/ha_gehome";
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user