bba55970ba
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
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;
|
|
};
|
|
}
|