home-assistant: Stop exposing component & package files

These were only ever used in a test, but for an upcoming change in
dependency handling, they mean we need to rebuild home-assistant for
each change in used components for no good reason.

This would mean building two additional home-assistant derivations for
the NixOS test alone.
This commit is contained in:
Martin Weinelt
2023-02-20 18:37:19 +01:00
parent ba3f159cc8
commit 3fa7dc206a
-9
View File
@@ -265,10 +265,6 @@ let
# Ensure that we are using a consistent package set
extraBuildInputs = extraPackages python.pkgs;
# Create info about included packages and components
extraComponentsFile = writeText "home-assistant-components" (lib.concatStringsSep "\n" extraComponents);
extraPackagesFile = writeText "home-assistant-packages" (lib.concatMapStringsSep "\n" (pkg: pkg.pname) extraBuildInputs);
# Don't forget to run parse-requirements.py after updating
hassVersion = "2023.2.5";
@@ -428,11 +424,6 @@ in python.pkgs.buildPythonApplication rec {
export PATH=${inetutils}/bin:$PATH
'';
postInstall = ''
cp -v ${extraComponentsFile} $out/extra_components
cp -v ${extraPackagesFile} $out/extra_packages
'';
passthru = {
inherit
availableComponents