summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-02-11 14:57:05 +0100
committerMel <mel@rnrd.eu>2025-02-11 14:57:05 +0100
commitdca859c210b23a006e23cab04eab05368ebe3605 (patch)
treeedb3955f084f9aa56298f38a1239823ac20e3dee /modules
parenta551cad606d7acf310a611ce14ca235a30382087 (diff)
downloadminerals-dca859c210b23a006e23cab04eab05368ebe3605.tar.zst
minerals-dca859c210b23a006e23cab04eab05368ebe3605.zip
Fix weird folder path duplication in idf_tools.py
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'modules')
-rw-r--r--modules/home/code.nix7
1 files changed, 7 insertions, 0 deletions
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,"
       '';
   });