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}";
|
pname = "${owner}/${domain}";
|
||||||
inherit version format;
|
inherit version format;
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
true
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
@@ -34,7 +38,9 @@ home-assistant.python.pkgs.buildPythonPackage (
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# optionally copy sentences, if they exist
|
# 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
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user