Merge pull request #200075 from sweber83/sw/zigbee2mqtt-nixpkgs-update

This commit is contained in:
Martin Weinelt 2022-11-07 23:36:51 +01:00 committed by GitHub
commit c93efc89ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -14,6 +14,7 @@ package.override rec {
};
passthru.tests.zigbee2mqtt = nixosTests.zigbee2mqtt;
passthru.updateScript = ./update.sh;
postInstall = ''
npm run build

View file

@ -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")"