about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBreland Miley <breland@bdawg.org>2024-07-13 21:54:25 -0400
committerBreland Miley <breland@bdawg.org>2024-07-14 14:24:58 -0400
commit2d284d65aae747cf618d42cdd93703b35cc0102a (patch)
treef36c73ac4051af893cbb6a86fed6069b2e30e22d
parentbfc74be03038b1d18d6b94792d1203a7027a575e (diff)
home-assistant-custom-components.alarmo: init at 1.10.4
-rw-r--r--pkgs/servers/home-assistant/custom-components/alarmo/default.nix31
-rw-r--r--pkgs/servers/home-assistant/custom-components/default.nix2
2 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/servers/home-assistant/custom-components/alarmo/default.nix b/pkgs/servers/home-assistant/custom-components/alarmo/default.nix
new file mode 100644
index 0000000000000..ace6633a8c6ed
--- /dev/null
+++ b/pkgs/servers/home-assistant/custom-components/alarmo/default.nix
@@ -0,0 +1,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;
+  };
+}
diff --git a/pkgs/servers/home-assistant/custom-components/default.nix b/pkgs/servers/home-assistant/custom-components/default.nix
index 3a1184016f3ef..5138c56f5aaff 100644
--- a/pkgs/servers/home-assistant/custom-components/default.nix
+++ b/pkgs/servers/home-assistant/custom-components/default.nix
@@ -4,6 +4,8 @@
 {
   adaptive_lighting = callPackage ./adaptive_lighting {};
 
+  alarmo = callPackage ./alarmo {};
+
   auth-header = callPackage ./auth-header {};
 
   awtrix = callPackage ./awtrix {};