git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #145796 from piegamesde/update-appservice-irc
commitee31eb664c2c2d7d46a2e0ea0495a988e77076fc authorMartin Weinelt <mweinelt@users.noreply.github.com> dateThu 25 Nov 2021, 11:08 (5 years ago) parent47b35f52b7ab56
3 files changed+3−5
pkgs/servers/matrix-synapse/matrix-appservice-irc/REVISION−1 pkgs/servers/matrix-synapse/matrix-appservice-irc/default.nix+2−2 pkgs/servers/matrix-synapse/matrix-appservice-irc/update.sh+1−2
pkgs/servers/matrix-synapse/matrix-appservice-irc/REVISIONdeleted−1
@@ -1 +0,0 @@
1−0.30.0
pkgs/servers/matrix-synapse/matrix-appservice-irc/default.nix+2−2
@@ -5,7 +5,7 @@ let
55 inherit pkgs nodejs;
66 inherit (stdenv.hostPlatform) system;
77 };
8− version = builtins.replaceStrings [ "\n" ] [ "" ] (builtins.readFile ./REVISION);
8+ version = (lib.importJSON ./package.json).version;
99in
1010ourNodePackages.package.override {
1111 pname = "matrix-appservice-irc";
@@ -30,7 +30,7 @@ ourNodePackages.package.override {
3030
3131 meta = with lib; {
3232 description = "Node.js IRC bridge for Matrix";
33− maintainers = with maintainers; [ piegames ];
33+ maintainers = with maintainers; [ ];
3434 homepage = "https://github.com/matrix-org/matrix-appservice-irc";
3535 license = licenses.asl20;
3636 };
pkgs/servers/matrix-synapse/matrix-appservice-irc/update.sh+1−2
@@ -6,7 +6,7 @@ set -euo pipefail
66cd "$(dirname "$0")"
77
88CURRENT_VERSION=$(nix eval --raw '(with import ../../../../. {}; matrix-appservice-irc.version)')
9−TARGET_VERSION="$(curl https://api.github.com/repos/matrix-org/matrix-appservice-irc/releases/latest | jq -r ".tag_name")"
9+TARGET_VERSION="$(curl https://api.github.com/repos/matrix-org/matrix-appservice-irc/releases/latest | jq --exit-status -r ".tag_name")"
1010
1111if [[ "$CURRENT_VERSION" == "$TARGET_VERSION" ]]; then
1212 echo "matrix-appservice-irc is up-to-date: ${CURRENT_VERSION}"
@@ -18,7 +18,6 @@ echo "matrix-appservice-irc: $CURRENT_VERSION -> $TARGET_VERSION"
1818rm -f package.json package-lock.json
1919wget https://github.com/matrix-org/matrix-appservice-irc/raw/$TARGET_VERSION/package.json
2020wget -O package-lock-temp.json https://github.com/matrix-org/matrix-appservice-irc/raw/$TARGET_VERSION/package-lock.json
21−echo "$TARGET_VERSION" > ./REVISION
2221
2322./generate-dependencies.sh
2423