8e4131e592
Signed-off-by: Robbert Gurdeep Singh <git@beardhatcode.be>
30 lines
792 B
Nix
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;
|
|
};
|
|
}
|