about summary refs log tree commit diff
path: root/pkgs/servers/home-assistant/custom-components/alarmo/default.nix
blob: ace6633a8c6ed93fb873704d6648836ee77ad54d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
  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;
  };
}