2021-02-02 20:47:09 +00:00
|
|
|
{ pkgs, nodejs, stdenv, fetchFromGitHub, lib, ... }:
|
2019-10-06 18:57:15 +00:00
|
|
|
let
|
2021-02-02 20:47:09 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matrix-org";
|
|
|
|
repo = "matrix-appservice-slack";
|
2021-05-06 18:23:51 +00:00
|
|
|
rev = "1.8.0";
|
|
|
|
sha256 = "sha256-FA6SMivMnloeZmnUhGx6N+ZLDTZFO3y17xJYclkp5w0=";
|
2021-02-02 20:47:09 +00:00
|
|
|
};
|
2019-10-06 18:57:15 +00:00
|
|
|
|
|
|
|
nodePackages = import ./node-composition.nix {
|
|
|
|
inherit pkgs nodejs;
|
|
|
|
inherit (stdenv.hostPlatform) system;
|
|
|
|
};
|
2019-10-08 13:26:19 +00:00
|
|
|
in
|
2021-02-02 20:47:09 +00:00
|
|
|
nodePackages.package.override {
|
2021-05-23 21:46:03 +00:00
|
|
|
pname = "matrix-appservice-slack";
|
|
|
|
|
2021-02-02 20:47:09 +00:00
|
|
|
inherit src;
|
|
|
|
|
2019-10-06 18:57:15 +00:00
|
|
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2019-10-08 13:26:19 +00:00
|
|
|
makeWrapper '${nodejs}/bin/node' "$out/bin/matrix-appservice-slack" \
|
|
|
|
--add-flags "$out/lib/node_modules/matrix-appservice-slack/lib/app.js"
|
2019-10-06 18:57:15 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Matrix <--> Slack bridge";
|
2021-03-14 09:53:39 +00:00
|
|
|
maintainers = with maintainers; [ beardhatcode ];
|
2019-10-08 13:26:19 +00:00
|
|
|
license = licenses.asl20;
|
2019-10-06 18:57:15 +00:00
|
|
|
};
|
|
|
|
}
|