From 4b985c5245bcfa07bedced915bc3461dc9f7d459 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Sat, 7 Feb 2026 22:52:54 -0500 Subject: [PATCH] home-assistant-custom-*: make package sets extensible Otherwise overriding them is difficult. --- pkgs/top-level/all-packages.nix | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 321356f1ae1b..98b217018f3f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8333,16 +8333,22 @@ with pkgs; buildHomeAssistantComponent = callPackage ../servers/home-assistant/build-custom-component { }; home-assistant-custom-components = recurseIntoAttrs ( - lib.packagesFromDirectoryRecursive { - inherit (home-assistant.python.pkgs) callPackage; - directory = ../servers/home-assistant/custom-components; - } + lib.makeExtensible ( + self: + lib.packagesFromDirectoryRecursive { + inherit (home-assistant.python.pkgs) callPackage; + directory = ../servers/home-assistant/custom-components; + } + ) ); home-assistant-custom-lovelace-modules = recurseIntoAttrs ( - lib.packagesFromDirectoryRecursive { - inherit callPackage; - directory = ../servers/home-assistant/custom-lovelace-modules; - } + lib.makeExtensible ( + self: + lib.packagesFromDirectoryRecursive { + inherit callPackage; + directory = ../servers/home-assistant/custom-lovelace-modules; + } + ) ); home-assistant-cli = callPackage ../servers/home-assistant/cli.nix { };