buildHomeAssistantComponent: make build quieter
- We generally don't need a buildPhase - Copy custom_sentences only if they exist
This commit is contained in:
@@ -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
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user