nixpkgs/pkgs/servers/matrix-synapse/matrix-appservice-slack/default.nix

33 lines
830 B
Nix
Raw Normal View History

{ pkgs, nodejs, stdenv, fetchFromGitHub, lib, ... }:
2019-10-06 18:57:15 +00:00
let
src = fetchFromGitHub {
owner = "matrix-org";
repo = "matrix-appservice-slack";
rev = "1.8.0";
sha256 = "sha256-FA6SMivMnloeZmnUhGx6N+ZLDTZFO3y17xJYclkp5w0=";
};
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
nodePackages.package.override {
2021-05-23 21:46:03 +00:00
pname = "matrix-appservice-slack";
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";
maintainers = with maintainers; [ beardhatcode ];
2019-10-08 13:26:19 +00:00
license = licenses.asl20;
2019-10-06 18:57:15 +00:00
};
}