Commit 69425026 authored by Zhong Jianxin's avatar Zhong Jianxin
Browse files

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
parent dc460ec7
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -43,5 +43,9 @@ home-assistant.python.pkgs.buildPythonPackage (
      isHomeAssistantComponent = true;
    } // args.passthru or { };

  } // builtins.removeAttrs args [ "nativeCheckInputs" "passthru" ]
    meta = {
      inherit (home-assistant.meta) platforms;
    } // args.meta or { };

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