Ensure that downloads folder exists
This commit is contained in:
parent
4e0dc359f8
commit
4e7b03c37d
@ -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.runCommand "staging-dir" {} "mkdir $out/staging")
|
||||
];
|
||||
};
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user