diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2022-11-07 23:36:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 23:36:51 +0100 |
commit | c93efc89ea3a67b081e39969b05f306f50f97397 (patch) | |
tree | a8a51d5167805b5fcfea4f7943476a820a553240 /pkgs | |
parent | c608ae4f194a138bcab5d54e343fd43b95ce1554 (diff) | |
parent | 6008f4ec11e00dfc1e9020f6e757d0822d265c5f (diff) |
Merge pull request #200075 from sweber83/sw/zigbee2mqtt-nixpkgs-update
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/servers/zigbee2mqtt/default.nix | 1 | ||||
-rwxr-xr-x | pkgs/servers/zigbee2mqtt/update.sh | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/servers/zigbee2mqtt/default.nix b/pkgs/servers/zigbee2mqtt/default.nix index fe189e9ab407b..30d9d47677e8f 100644 --- a/pkgs/servers/zigbee2mqtt/default.nix +++ b/pkgs/servers/zigbee2mqtt/default.nix @@ -14,6 +14,7 @@ package.override rec { }; passthru.tests.zigbee2mqtt = nixosTests.zigbee2mqtt; + passthru.updateScript = ./update.sh; postInstall = '' npm run build diff --git a/pkgs/servers/zigbee2mqtt/update.sh b/pkgs/servers/zigbee2mqtt/update.sh index c911d44389db3..72c8caa00f60a 100755 --- a/pkgs/servers/zigbee2mqtt/update.sh +++ b/pkgs/servers/zigbee2mqtt/update.sh @@ -1,8 +1,11 @@ #!/usr/bin/env nix-shell -#! nix-shell -I nixpkgs=../../.. -i bash -p nodePackages.node2nix curl jq nix-update common-updater-scripts +#! nix-shell -i bash -p nodePackages.node2nix curl jq nix-update common-updater-scripts set -euo pipefail +SCRIPT_DIR="$(dirname "$0")" +cd "$SCRIPT_DIR" + CURRENT_VERSION=$(nix eval -f ../../.. --raw zigbee2mqtt.version) TARGET_VERSION="$(curl https://api.github.com/repos/Koenkk/zigbee2mqtt/releases/latest | jq -r ".tag_name")" |