mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
38 lines
849 B
Nix
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 ];
|
|
};
|
|
}
|