diff --git a/.wrap-arduino-cli.nix.swp b/.wrap-arduino-cli.nix.swp new file mode 100644 index 0000000..451b20d Binary files /dev/null and b/.wrap-arduino-cli.nix.swp differ diff --git a/wrap-arduino-cli.nix b/wrap-arduino-cli.nix index 6b1d7d3..e8bd6c5 100644 --- a/wrap-arduino-cli.nix +++ b/wrap-arduino-cli.nix @@ -21,6 +21,7 @@ let (pkgs.writeTextDir "inventory.yaml" (builtins.toJSON {})) (pkgs.writeTextDir "package_index.json" (builtins.toJSON {packages = [];})) (pkgs.writeTextDir "library_index.json" (builtins.toJSON {libraries = [];})) + (pkgs.writeTextDir "staging/.dummy" "") ]; }; in @@ -31,7 +32,11 @@ let inherit dataPath userPath; }; } '' - makeWrapper ${pkgs.arduino-cli}/bin/arduino-cli $out/bin/arduino-cli --set ARDUINO_UPDATER_ENABLE_NOTIFICATION false --set ARDUINO_DIRECTORIES_DATA ${dataPath} --set ARDUINO_DIRECTORIES_USER ${userPath} + makeWrapper ${pkgs.arduino-cli}/bin/arduino-cli $out/bin/arduino-cli \ + --set ARDUINO_UPDATER_ENABLE_NOTIFICATION false \ + --set ARDUINO_DIRECTORIES_DATA ${dataPath} \ + --set ARDUINO_DIRECTORIES_USER ${userPath} \ + --append-flags '--build-property commonhfile.fqfn=/tmp/esp8266common.h' ''; in lib.makeOverridable wrap