From dca859c210b23a006e23cab04eab05368ebe3605 Mon Sep 17 00:00:00 2001 From: Mel Date: Tue, 11 Feb 2025 14:57:05 +0100 Subject: Fix weird folder path duplication in idf_tools.py Signed-off-by: Mel --- modules/home/code.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/home') diff --git a/modules/home/code.nix b/modules/home/code.nix index 5513f12..fe3319d 100644 --- a/modules/home/code.nix +++ b/modules/home/code.nix @@ -88,6 +88,13 @@ let + '' mkdir -p $out/tools/python_env ln -s ${esp-idf-python-env} $out/tools/python_env/${pythonEnvFolderName} + + # for some reason the tools script likes doubling up + # the tools folder, fix that. + substituteInPlace $out/tools/idf_tools.py \ + --replace-fail \ + "os.path.join(g.idf_tools_path, 'tools'," \ + "os.path.join(g.idf_tools_path," ''; }); -- cgit 1.4.1