Ensure that downloads folder exists

This commit is contained in:
Paul Brinkmeier 2024-07-26 04:02:24 +02:00
parent 4e0dc359f8
commit 4e7b03c37d

View File

@ -21,6 +21,7 @@ let
(pkgs.writeTextDir "inventory.yaml" (builtins.toJSON {})) (pkgs.writeTextDir "inventory.yaml" (builtins.toJSON {}))
(pkgs.writeTextDir "package_index.json" (builtins.toJSON {packages = [];})) (pkgs.writeTextDir "package_index.json" (builtins.toJSON {packages = [];}))
(pkgs.writeTextDir "library_index.json" (builtins.toJSON {libraries = [];})) (pkgs.writeTextDir "library_index.json" (builtins.toJSON {libraries = [];}))
(pkgs.runCommand "staging-dir" {} "mkdir $out/staging")
]; ];
}; };
in in
@ -31,7 +32,11 @@ let
inherit dataPath userPath; 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 in
lib.makeOverridable wrap lib.makeOverridable wrap