Merge pull request #330152 from dotlambda/home-assistant
nixos/home-assistant: customComponents must use buildHomeAssistantComponent
This commit is contained in:
commit
0196cfe7f3
@ -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; [
|
||||
|
@ -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" ]
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user