anchor.diff:  
     # 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 = "2022.2.6";
  
positive.code: # Additional packages to add to propagatedBuildInputs
  , extraPackages ? ps: []
  
  # Override Python packages using
  # self: super: { pkg = super.pkg.overridePythonAttrs (oldAttrs: { ... }); }
  # Applied after defaultOverrides
  
negative.code:     export PATH=${inetutils}/bin:$PATH
    '';
  
    postInstall = ''
      cp -v ${extraComponentsFile} $out/extra_components
      cp -v ${extraPackagesFile} $out/extra_packages
    '';
  
    passthru = {
      inherit
        availableComponents
  