anchor.diff:  # Additional packages to add to propagatedBuildInputs
   , extraPackages ? ps: []
   
  +# Write out info about included extraComponents and extraPackages
  +, writeText
  +
   # Override Python packages using
   # self: super: { pkg = super.pkg.overridePythonAttrs (oldAttrs: { ... }); }
   # Applied after defaultOverrides
  
positive.code: 
    # Ensure that we are using a consistent package set
    extraBuildInputs = extraPackages python.pkgs;
  
    # Don't forget to run parse-requirements.py after updating
    hassVersion = "2022.2.6";
  
negative.code:     export PATH=${inetutils}/bin:$PATH
    '';
  
    postInstall = ''
      cp -v ${extraComponentsFile} $out/extra_components
      cp -v ${extraPackagesFile} $out/extra_packages
    '';
  
    passthru = {
      inherit
        availableComponents
  