2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildNpmPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
, matrix-sdk-crypto-nodejs
|
|
|
|
, nixosTests
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
2021-05-29 03:34:57 +00:00
|
|
|
pname = "matrix-appservice-irc";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.38.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matrix-org";
|
|
|
|
repo = "matrix-appservice-irc";
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-rV4B9OQl1Ht26X4e7sqCe1PR5RpzIcjj4OvWG6udJWo=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
2021-05-29 03:34:57 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
npmDepsHash = "sha256-iZuPr3a1BPtRfkEoxOs4oRL/nCfy3PLx5T9dX49/B0s=";
|
2022-09-14 18:05:37 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
python3
|
|
|
|
];
|
2022-10-30 15:09:59 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
postInstall = ''
|
2022-12-17 10:02:37 +00:00
|
|
|
rm -rv $out/lib/node_modules/matrix-appservice-irc/node_modules/@matrix-org/matrix-sdk-crypto-nodejs
|
|
|
|
ln -sv ${matrix-sdk-crypto-nodejs}/lib/node_modules/@matrix-org/matrix-sdk-crypto-nodejs $out/lib/node_modules/matrix-appservice-irc/node_modules/@matrix-org/
|
2021-04-05 15:23:46 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests.matrix-appservice-irc = nixosTests.matrix-appservice-irc;
|
2022-12-28 21:21:41 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Node.js IRC bridge for Matrix";
|
2022-11-04 12:27:35 +00:00
|
|
|
maintainers = with maintainers; [ rhysmdnz ];
|
2021-04-05 15:23:46 +00:00
|
|
|
homepage = "https://github.com/matrix-org/matrix-appservice-irc";
|
|
|
|
license = licenses.asl20;
|
2022-09-14 18:05:37 +00:00
|
|
|
platforms = platforms.linux;
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
}
|