Commit a5f8d3fe authored by Robert Schütz's avatar Robert Schütz
Browse files

nixos/home-assistant: customComponents must use buildHomeAssistantComponent

parent 11054378
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -192,7 +192,12 @@ in {
    };

    customComponents = mkOption {
      type = types.listOf types.package;
      type = types.listOf (
        types.addCheck types.package (p: p.isHomeAssistantComponent or false) // {
          name = "home-assistant-component";
          description = "package that is a Home Assistant component";
        }
      );
      default = [];
      example = literalExpression ''
        with pkgs.home-assistant-custom-components; [
+5 −1
Original line number Diff line number Diff line
@@ -39,5 +39,9 @@ home-assistant.python.pkgs.buildPythonPackage (
      packaging
    ] ++ (args.nativeCheckInputs or []);

  } // builtins.removeAttrs args [ "nativeCheckInputs" ]
    passthru = {
      isHomeAssistantComponent = true;
    } // args.passthru or { };

  } // builtins.removeAttrs args [ "nativeCheckInputs" "passthru" ]
)