depot/pkgs/servers/home-assistant/custom-components/alarmo/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

31 lines
757 B
Nix

{
lib,
fetchFromGitHub,
buildHomeAssistantComponent,
}:
buildHomeAssistantComponent rec {
owner = "nielsfaber";
domain = "alarmo";
version = "1.10.4";
postInstall = ''
cd $out/custom_components/alarmo/frontend
ls . | grep -v dist | xargs rm -rf
'';
src = fetchFromGitHub {
owner = "nielsfaber";
repo = "alarmo";
rev = "refs/tags/v${version}";
hash = "sha256-/hNzGPckLHUX0mrBF3ugAXstrOc1mWdati+nRJCwldc=";
};
meta = with lib; {
changelog = "https://github.com/nielsfaber/alarmo/releases/tag/v${version}";
description = "Alarm System for Home Assistant";
homepage = "https://github.com/nielsfaber/alarmo";
maintainers = with maintainers; [ mindstorms6 ];
license = licenses.unfree;
};
}