esphome: add update script that includes the dashboard
This commit is contained in:
parent
c57357368c
commit
e66af0e110
|
@ -91,6 +91,7 @@ with python.pkgs; buildPythonApplication rec {
|
|||
|
||||
passthru = {
|
||||
dashboard = esphome-dashboard;
|
||||
updateScript = callPackage ./update.nix {};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
|
12
pkgs/tools/misc/esphome/update.nix
Normal file
12
pkgs/tools/misc/esphome/update.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ writeShellScript
|
||||
, lib
|
||||
, git
|
||||
, nix-update
|
||||
}:
|
||||
|
||||
writeShellScript "update-esphome" ''
|
||||
PATH=${lib.makeBinPath [ git nix-update ]}
|
||||
|
||||
nix-update esphome.dashboard
|
||||
nix-update esphome
|
||||
''
|
Loading…
Reference in a new issue