matrix-appservice-irc: improve updateScript
This commit is contained in:
parent
428620c9c5
commit
225ffe5dd0
|
@ -6,6 +6,7 @@ let
|
|||
inherit (stdenv.hostPlatform) system;
|
||||
};
|
||||
version = (lib.importJSON ./package.json).version;
|
||||
srcInfo = lib.importJSON ./src.json;
|
||||
in
|
||||
ourNodePackages.package.override {
|
||||
pname = "matrix-appservice-irc";
|
||||
|
@ -15,7 +16,7 @@ ourNodePackages.package.override {
|
|||
owner = "matrix-org";
|
||||
repo = "matrix-appservice-irc";
|
||||
rev = version;
|
||||
sha256 = "sha256-pJ024kIN7TJdOVV/mMB/DQJdaPQJI6yQci3uASyMZRs=";
|
||||
inherit (srcInfo) sha256;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper nodePackages.node-gyp-build ];
|
||||
|
|
10
pkgs/servers/matrix-synapse/matrix-appservice-irc/src.json
Normal file
10
pkgs/servers/matrix-synapse/matrix-appservice-irc/src.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"url": "https://github.com/matrix-org/matrix-appservice-irc",
|
||||
"rev": "6d5795ce9544c8d73f4846f1bd7190d352dddead",
|
||||
"date": "2021-10-25T12:54:49+02:00",
|
||||
"path": "/nix/store/by3iwfs5yayyv576qvfl650dgjw7jy5k-matrix-appservice-irc",
|
||||
"sha256": "06v5ihn03vidfa8aq8q9yil5s0hdgz09hzsm75fk5v8d8bi3d7d4",
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#! nix-shell -i bash -p nodePackages.node2nix nodejs-12_x curl jq nix
|
||||
#! nix-shell -i bash -p nodePackages.node2nix nodejs-12_x curl jq nix nix-prefetch-git
|
||||
|
||||
set -euo pipefail
|
||||
# cd to the folder containing this script
|
||||
|
@ -23,6 +23,4 @@ wget -O package-lock-temp.json https://github.com/matrix-org/matrix-appservice-i
|
|||
|
||||
rm ./package-lock-temp.json
|
||||
|
||||
# Apparently this is done by r-ryantm, so only uncomment for manual usage
|
||||
#git add ./package.json ./node-packages.nix
|
||||
#git commit -m "matrix-appservice-irc: ${CURRENT_VERSION} -> ${TARGET_VERSION}"
|
||||
nix-prefetch-git --rev "$TARGET_VERSION" --url "https://github.com/matrix-org/matrix-appservice-irc" > ./src.json
|
||||
|
|
Loading…
Reference in a new issue