esphome: add update script that includes the dashboard
This commit is contained in:
parent
c57357368c
commit
e66af0e110
2 changed files with 13 additions and 0 deletions
|
@ -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