2021-02-05 17:12:51 +00:00
|
|
|
{ pkgs, nodejs, stdenv, fetchFromGitHub, lib, ... }:
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matrix-org";
|
|
|
|
repo = "matrix-appservice-slack";
|
2021-05-20 23:08:51 +00:00
|
|
|
rev = "1.8.0";
|
|
|
|
sha256 = "sha256-FA6SMivMnloeZmnUhGx6N+ZLDTZFO3y17xJYclkp5w0=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nodePackages = import ./node-composition.nix {
|
|
|
|
inherit pkgs nodejs;
|
|
|
|
inherit (stdenv.hostPlatform) system;
|
|
|
|
};
|
|
|
|
in
|
2021-02-05 17:12:51 +00:00
|
|
|
nodePackages.package.override {
|
2021-05-29 03:34:57 +00:00
|
|
|
pname = "matrix-appservice-slack";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
inherit src;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
makeWrapper '${nodejs}/bin/node' "$out/bin/matrix-appservice-slack" \
|
|
|
|
--add-flags "$out/lib/node_modules/matrix-appservice-slack/lib/app.js"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Matrix <--> Slack bridge";
|
2021-04-05 15:23:46 +00:00
|
|
|
maintainers = with maintainers; [ beardhatcode ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|