Files

38 lines
849 B
Nix

{
lib,
buildHomeAssistantComponent,
cronsim,
fetchFromGitHub,
}:
buildHomeAssistantComponent rec {
owner = "frenck";
domain = "spook";
version = "5.7.0";
src = fetchFromGitHub {
inherit owner;
repo = domain;
tag = "v${version}";
hash = "sha256-CYrnPO4m8XFx+HJmErN2jVLe0WMKPLhaK45sXai9W2U=";
};
patches = [ ./remove-sub-integration-symlink-hack.patch ];
postPatch = ''
substituteInPlace custom_components/spook/manifest.json \
--replace-fail '"version": "0.0.0"' '"version": "${version}"'
'';
dependencies = [
cronsim
];
meta = {
changelog = "https://github.com/frenck/spook/releases/tag/v${version}";
description = "Toolbox for Home Assistant";
homepage = "https://spook.boo/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ kkoniuszy ];
};
}