buildHomeAssistantComponent: make build quieter

- We generally don't need a buildPhase
- Copy custom_sentences only if they exist
This commit is contained in:
Martin Weinelt
2024-12-12 03:52:42 +01:00
parent 31a85b9115
commit 86fff9e3bf
@@ -22,6 +22,10 @@ home-assistant.python.pkgs.buildPythonPackage (
pname = "${owner}/${domain}";
inherit version format;
buildPhase = ''
true
'';
installPhase = ''
runHook preInstall
@@ -34,7 +38,9 @@ home-assistant.python.pkgs.buildPythonPackage (
fi
# optionally copy sentences, if they exist
cp -r ./custom_sentences/ $out/ || true
if [[ -d ./custom_sentences ]]; then
cp -r ./custom_sentences/ $out/
fi
runHook postInstall
'';