Commit Graph

14 Commits

Author SHA1 Message Date
Martin Weinelt
96f930534f
buildHomeAssistantComponent: fix output dirname with manifest in repo root 2024-12-31 16:02:46 +01:00
Martin Weinelt
86fff9e3bf
buildHomeAssistantComponent: make build quieter
- We generally don't need a buildPhase
- Copy custom_sentences only if they exist
2024-12-12 03:52:42 +01:00
Martin Weinelt
b2d6597ee4
buildHomeAssistantComponent: Increase manifest check robustness
- Find and check all manifest files
- Allow ignoring too tight version constraints
2024-12-12 03:52:41 +01:00
Martin Weinelt
ba5ed7f373
buildHomeAssistantComponent: support components in src root 2024-12-12 02:25:21 +01:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Zhong Jianxin
6942502662 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]: 87a30cbaa0/pkgs/servers/home-assistant/default.nix (L675)
2024-11-11 20:54:06 +08:00
Yueh-Shun Li
054c5f0e10 treewide: handle preDistPhases __structuredAttrs-agnostically
Always specify the preDistPhases attribute as a list instead of a string.

Append elements to the preDistPhases Bash variable using appendToVar
instead of string or Bash array concatenation.

Handle element insertion before a specific element using string
substitution as before, but handle both structured and unstructured
attributes.
2024-09-03 05:33:59 +08:00
Robert Schütz
a5f8d3fe02 nixos/home-assistant: customComponents must use buildHomeAssistantComponent 2024-07-26 07:33:40 -07:00
Martin Weinelt
bd8bc51c60
Merge pull request #327487 from mweinelt/pyindego-3.2.1
python312Packages.pyindego: 3.1.1 -> 3.2.1
2024-07-18 16:05:30 +02:00
Martin Weinelt
7d10db1506
buildHomeAssistantComponent: support custom sentences
Custom components can also ship with sentences that extend the grammar-
based voice infrastructur of Home Assistant.
2024-07-17 22:29:39 +02:00
Martin Weinelt
9f03c0e190
buildHomeAssistantComponent: catch invalid requirements
Catch, log and ignore requirement specifiers that cannot be parsed.
2024-07-15 23:54:19 +02:00
Martin Weinelt
01616e5331
buildHomeAssistantComponent: migrate from pname to owner/domain
Also make the attribute name to match the domain name.

This is more in line with the home-assistant custom component ecosystem
and allows additional validation between the derivation and the manifest.

Also, at a later time, this will enable us to check for domain conflicts
at eval time.
2023-12-06 03:55:33 +01:00
Martin Weinelt
8c87a98ce1
buildHomeAssistantComponent: fix install with patches applied
Installing from `$src` will always copy the unmodified source tree, as it
appears in the /nix/store. This prevents the application of patches.
2023-11-25 14:23:49 +01:00
Graham Bennett
31e60c2fbb
buildHomeAssistantComponent: init
Builder to package up custom components for Home Assistant.

These packages use `buildPythonPackage` with `format = "other"` and
rely on a custom install phase, that expects a standardized path,
and a custom check phase, that for now verifies python dependencies have
been satisified.

Co-Authored-By: Martin Weinelt <hexa@darmstadt.ccc.de>
Co-Authored-By: Sandro Jäckel <sandro.jaeckel@gmail.com>
2023-11-10 22:00:35 +01:00