From 2bbd19720343c0a6ec00c388d88053c936a06f6a Mon Sep 17 00:00:00 2001 From: Matej Urbas Date: Tue, 23 Dec 2025 09:45:14 +0000 Subject: [PATCH] buildHomeAssistantComponent: reintroduce nativeCheckInputs This fixes a bug introduced in commit 9dcea72b22ffcb9dac2f17b18b6c9cb96c66ce39 where they moved setup hooks from `nativeCheckInputs` to `nativeBuildInputs` without modifying the `removeAttrs` logic accordingly. This meant that: 1. callee's `nativeCheckInputs` parameter would be erroneously ignored, and 2. callee's `nativeBuildInputs` parameter would erroneously clobber the setup hooks previously defined in the `buildHomeAssistantComponent` function. Changing the `removeAttrs` logic so that it filters out callee's `nativeBuildInputs` parameter rather than `nativeCheckInputs` fixes the bug. --- pkgs/servers/home-assistant/build-custom-component/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/build-custom-component/default.nix b/pkgs/servers/home-assistant/build-custom-component/default.nix index 8d249bfa199c..9e58ee95ee31 100644 --- a/pkgs/servers/home-assistant/build-custom-component/default.nix +++ b/pkgs/servers/home-assistant/build-custom-component/default.nix @@ -62,7 +62,7 @@ home-assistant.python.pkgs.buildPythonPackage ( } // removeAttrs args [ "meta" - "nativeCheckInputs" + "nativeBuildInputs" "passthru" ] )