Unverified Commit 0196cfe7 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #330152 from dotlambda/home-assistant

nixos/home-assistant: customComponents must use buildHomeAssistantComponent
parents 58e9d6e9 a5f8d3fe
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" ]
)