From 8c87a98ce1e8850faee64a0a540acff233b66bd2 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 25 Nov 2023 14:23:49 +0100 Subject: [PATCH] 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. --- 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 05b7c2d4b039..5a6e76deb413 100644 --- a/pkgs/servers/home-assistant/build-custom-component/default.nix +++ b/pkgs/servers/home-assistant/build-custom-component/default.nix @@ -23,7 +23,7 @@ home-assistant.python.pkgs.buildPythonPackage ( runHook preInstall mkdir $out - cp -r $src/custom_components/ $out/ + cp -r ./custom_components/ $out/ runHook postInstall '';