Merge pull request #193460 from r-ryantm/auto-update/esphome
This commit is contained in:
commit
1c4e3c9f14
@ -5,11 +5,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "esphome-dashboard";
|
||||
version = "20220920.1";
|
||||
version = "20220925.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-qmutcnsz3utVUmVZZEYYiemOGdQ4Ima2ueD4LyYaOdU=";
|
||||
hash = "sha256-jlHS+Hdu1FWV/nJiiferOdyThWyIc21uAFFlh4BD+M4=";
|
||||
};
|
||||
|
||||
# no tests
|
||||
|
@ -15,14 +15,14 @@ let
|
||||
in
|
||||
with python.pkgs; buildPythonApplication rec {
|
||||
pname = "esphome";
|
||||
version = "2022.9.1";
|
||||
version = "2022.9.2";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-j6qzCzPiChvO1WR+ZaVILgONcdOzwlE4TBDnI9R6FjM=";
|
||||
hash = "sha256-PVJZ2cOguXIh96246AVofTg1ZWqWJPFcDXlPk3Rn+Cs=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@ -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 New Issue
Block a user