nixpkgs-suyu/pkgs/servers/matrix-synapse/matrix-appservice-slack/default.nix
Robbert Gurdeep Singh 8e4131e592 matrix-appservice-slack: Add beardhatcode as maintainer
Signed-off-by: Robbert Gurdeep Singh <git@beardhatcode.be>
2021-03-22 10:05:59 +01:00

30 lines
792 B
Nix

{ pkgs, nodejs, stdenv, fetchFromGitHub, lib, ... }:
let
src = fetchFromGitHub {
owner = "matrix-org";
repo = "matrix-appservice-slack";
rev = "1.7.0";
sha256 = "sha256-0BcnG/DGvc3uh/eP0KIB5gPSpXNPlaAl78D4bVCnLHg=";
};
nodePackages = import ./node-composition.nix {
inherit pkgs nodejs;
inherit (stdenv.hostPlatform) system;
};
in
nodePackages.package.override {
inherit src;
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";
maintainers = with maintainers; [ beardhatcode ];
license = licenses.asl20;
};
}