diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2024-07-16 01:31:01 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2024-07-17 22:29:39 +0200 |
commit | 7d10db150676bcd6ae48c7656dc28f3baa4f3b02 (patch) | |
tree | 634d9ed96135fc7d0c9b91b6cb6bb71b055c8f02 /pkgs/servers/home-assistant/build-custom-component | |
parent | 974165d1ccaafd90e2ff4b90f38630a397bb76e1 (diff) |
buildHomeAssistantComponent: support custom sentences
Custom components can also ship with sentences that extend the grammar-
based voice infrastructur of Home Assistant.
Diffstat (limited to 'pkgs/servers/home-assistant/build-custom-component')
-rw-r--r-- | pkgs/servers/home-assistant/build-custom-component/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/servers/home-assistant/build-custom-component/default.nix b/pkgs/servers/home-assistant/build-custom-component/default.nix index 2948d15bb814..17677e99d125 100644 --- a/pkgs/servers/home-assistant/build-custom-component/default.nix +++ b/pkgs/servers/home-assistant/build-custom-component/default.nix @@ -27,6 +27,9 @@ home-assistant.python.pkgs.buildPythonPackage ( mkdir $out cp -r ./custom_components/ $out/ + # optionally copy sentences, if they exist + cp -r ./custom_sentences/ $out/ || true + runHook postInstall ''; |