Skip to content

Commit 6942502

Browse files
committed
buildHomeAssistantComponent: inherit meta.platforms from home-assistant
home-assistant-custom-components.* are meant to be used with home-assistant, they should be built for the same platforms as home-assistant. Currently home-assistant is [Linux only][1], this will prevent home-assistant-custom-component.* from building on Darwin, and save some build resources. [1]: https://github.com/NixOS/nixpkgs/blob/87a30cbaa07aea689bf90c93cfc69da7f2dcb0df/pkgs/servers/home-assistant/default.nix#L675
1 parent dc460ec commit 6942502

File tree

1 file changed

+5
-1
lines changed
  • pkgs/servers/home-assistant/build-custom-component

1 file changed

+5
-1
lines changed

pkgs/servers/home-assistant/build-custom-component/default.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,9 @@ home-assistant.python.pkgs.buildPythonPackage (
4343
isHomeAssistantComponent = true;
4444
} // args.passthru or { };
4545

46-
} // builtins.removeAttrs args [ "nativeCheckInputs" "passthru" ]
46+
meta = {
47+
inherit (home-assistant.meta) platforms;
48+
} // args.meta or { };
49+
50+
} // builtins.removeAttrs args [ "meta" "nativeCheckInputs" "passthru" ]
4751
)

0 commit comments

Comments
 (0)